Create fio wrapper for rename file

This commit is contained in:
Jonathan G Rennison
2023-07-09 12:42:35 +01:00
parent f190b9815a
commit f6e8ea059d
4 changed files with 11 additions and 2 deletions

View File

@@ -3735,7 +3735,7 @@ void DoAutoOrNetsave(FiosNumberedSaveName &counter, bool threaded, FiosNumberedS
std::string lt_path = lt_counter->FilenameUsingMaxSaves(_settings_client.gui.max_num_lt_autosaves);
DEBUG(sl, 2, "Renaming autosave '%s' to long-term file '%s'", buf, lt_path.c_str());
std::string dir = FioFindDirectory(AUTOSAVE_DIR);
rename((dir + buf).c_str(), (dir + lt_path).c_str());
FioRenameFile(dir + buf, dir + lt_path);
}
}