mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 11:18:22 -05:00
fix for profile change saving on windows
This commit is contained in:
@@ -427,6 +427,7 @@ int saveLastChangeToProfile(lua_State* L) {
|
||||
filein.close();
|
||||
fileout.close();
|
||||
if (found) {
|
||||
FileSys.deleteFile(assetPath);
|
||||
int success = rename(tempAssetPath.c_str(), assetPath.c_str());
|
||||
if (success != 0) {
|
||||
std::string error = fmt::format("Error renaming file {} to {}",
|
||||
|
||||
Reference in New Issue
Block a user