From dff76dec566d97642ba2162ab14869bc28ed7f7a Mon Sep 17 00:00:00 2001 From: sum2012 Date: Tue, 27 Jan 2015 21:17:07 +0800 Subject: [PATCH] Fix as @Bigpet suggestion --- Core/CwCheat.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index b8484062ca..612e13587c 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -41,14 +41,10 @@ static void __CheatStart() { File::CreateFullPath(GetSysDirectory(DIRECTORY_CHEATS)); if (!File::Exists(activeCheatFile)) { -#ifndef Symbian ofstream myCheatFile; - myCheatFile.open(activeCheatFile); + myCheatFile.open(activeCheatFile.c_str()); myCheatFile << "\xEF\xBB\xBF"; myCheatFile.close(); -#else - File::CreateEmptyFile(activeCheatFile); -#endif }