You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-Add visible IO errors when closing a file fails due to it being locked (most likely on windows), closes #4760
This commit is contained in:
@@ -131,6 +131,10 @@ void FileAccessWindows::close() {
|
||||
//atomic replace for existing file
|
||||
rename_error = !ReplaceFileW(save_path.c_str(), (save_path+".tmp").c_str(), NULL, 2|4, NULL, NULL);
|
||||
}
|
||||
if (rename_error && close_fail_notify) {
|
||||
close_fail_notify(save_path);
|
||||
}
|
||||
|
||||
save_path="";
|
||||
ERR_FAIL_COND( rename_error );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user