diff --git a/bin/cheats_ws.zip b/bin/resources/cheats_ws.zip similarity index 100% rename from bin/cheats_ws.zip rename to bin/resources/cheats_ws.zip diff --git a/pcsx2/gui/AppCoreThread.cpp b/pcsx2/gui/AppCoreThread.cpp index 374afac547..1ff9ecfd1b 100644 --- a/pcsx2/gui/AppCoreThread.cpp +++ b/pcsx2/gui/AppCoreThread.cpp @@ -22,6 +22,7 @@ #include #include "fmt/core.h" +#include "common/FileSystem.h" #include "common/StringUtil.h" #include "common/Threading.h" @@ -497,10 +498,11 @@ static void _ApplySettings(const Pcsx2Config& src, Pcsx2Config& fixup) else { // No ws cheat files found at the cheats_ws folder, try the ws cheats zip file. - wxString cheats_ws_archive = Path::Combine(PathDefs::GetProgramDataDir(), wxFileName(L"cheats_ws.zip")); + const wxString cheats_ws_archive(Path::Combine(EmuFolders::Resources, wxFileName(L"cheats_ws.zip"))); if (wxFile::Exists(cheats_ws_archive)) { - int numberDbfCheatsLoaded = LoadPatchesFromZip(GameInfo::gameCRC, cheats_ws_archive, new wxFFileInputStream(cheats_ws_archive)); + wxFFileInputStream* strm = new wxFFileInputStream(cheats_ws_archive); + int numberDbfCheatsLoaded = LoadPatchesFromZip(GameInfo::gameCRC, cheats_ws_archive, strm); PatchesCon->WriteLn(Color_Green, "(Wide Screen Cheats DB) Patches Loaded: %d", numberDbfCheatsLoaded); gameWsHacks.Printf(L" [%d widescreen hacks]", numberDbfCheatsLoaded); }