From 879732e8b726a80681a5360eed46bab380b789a9 Mon Sep 17 00:00:00 2001 From: yukani Date: Tue, 8 Aug 2023 20:14:24 +0300 Subject: [PATCH] Update C_PcSave.cpp --- source/game_sa/C_PcSave.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/source/game_sa/C_PcSave.cpp b/source/game_sa/C_PcSave.cpp index 62d74b6b90..0dcef36350 100644 --- a/source/game_sa/C_PcSave.cpp +++ b/source/game_sa/C_PcSave.cpp @@ -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); }