From 659b0dbcb6864898d46678f203b207e2d55af6f9 Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Sun, 20 Dec 2009 14:36:43 +0000 Subject: [PATCH] - fix for non WIN32 compilers; --- desmume/src/NDSSystem.cpp | 2 +- desmume/src/cheatSystem.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index b0777e6b3..1629cb1d2 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -524,7 +524,7 @@ int NDS_LoadROM(const char *filename, const char *logicalFilename) path.getpathnoext(path.CHEATS, buf); strcat(buf, ".dct"); // DeSmuME cheat :) - cheatsInit(buf); + cheats->init(buf); gameInfo.populate(); gameInfo.crc = crc32(0,data,size); diff --git a/desmume/src/cheatSystem.cpp b/desmume/src/cheatSystem.cpp index 9c2ac4f95..d8e0c2cd6 100644 --- a/desmume/src/cheatSystem.cpp +++ b/desmume/src/cheatSystem.cpp @@ -602,7 +602,7 @@ BOOL CHEATS::load() if (flist) { - INFO("Load lists: %s\n", filename); + INFO("Load cheats: %s\n", filename); clear(); last = 0; line = 0; while (!feof(flist)) @@ -663,7 +663,7 @@ BOOL CHEATS::load() fclose(flist); num = last; - INFO("Added %i list codes\n", num); + INFO("Added %i cheat codes\n", num); return TRUE; } return FALSE;