diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 77e8c8bf42..c7c6bed167 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -13,6 +13,8 @@ #include "util/text/utf8.h" #endif +using namespace std; + static int CheatEvent = -1; std::string gameTitle; std::string activeCheatFile; @@ -39,7 +41,11 @@ static void __CheatStart() { File::CreateFullPath(GetSysDirectory(DIRECTORY_CHEATS)); if (!File::Exists(activeCheatFile)) { - File::CreateEmptyFile(activeCheatFile); + ofstream myCheatFile; + myCheatFile.open(activeCheatFile); + myCheatFile << "\xEF\xBB\xBF"; + myCheatFile.close(); + } cheatEngine = new CWCheatEngine();