File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1024,7 +1024,6 @@ void SaveManager::SaveGlobal() {
10241024 output << std::setw (4 ) << globalBlock << std::endl;
10251025}
10261026
1027-
10281027void SaveManager::LoadFile (int fileNum) {
10291028 SPDLOG_INFO (" Load File - fileNum: {}" , fileNum);
10301029 std::filesystem::path fileName = GetFileName (fileNum);
@@ -1077,7 +1076,7 @@ void SaveManager::LoadFile(int fileNum) {
10771076 GameInteractor::Instance->ExecuteHooks <GameInteractor::OnLoadFile>(fileNum);
10781077 } catch (const std::exception& e) {
10791078 input.close ();
1080- std::filesystem::path newFile (LUS::Context::GetPathRelativeToAppDirectory (" Save" ) + (" /file" + std::to_string (fileNum + 1 ) + " .bak" ));
1079+ std::filesystem::path newFile (LUS::Context::GetPathRelativeToAppDirectory (" Save" ) + (" /file" + std::to_string (fileNum + 1 ) + " - " + std::to_string ( GetUnixTimestamp ()) + " .bak" ));
10811080#if defined(__SWITCH__) || defined(__WIIU__)
10821081 copy_file (fileName.c_str (), newFile.c_str ());
10831082#else
You can’t perform that action at this time.
0 commit comments