Skip to content

Commit

Permalink
Update C_PcSave.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yukani authored Aug 8, 2023
1 parent 07411e5 commit 879732e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions source/game_sa/C_PcSave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,5 @@ bool C_PcSave::DeleteSlot(int32 slot) {
char path[MAX_PATH]{};
s_PcSaveHelper.error = eErrorCode::NONE;
GenerateGameFilename(slot, path);
#ifdef DEFAULT_FUNCTIONS
DeleteFile(path);
if (auto f = CFileMgr::OpenFile(path, "rb")) {
CFileMgr::CloseFile(f);
return true;
}
return false;
#else
return !std::filesystem::remove(path);
#endif
return std::filesystem::remove(path);
}

0 comments on commit 879732e

Please sign in to comment.