From d87fdb5df87c20d85ab88182241fe3ccc5a4a6ea Mon Sep 17 00:00:00 2001 From: giantpune Date: Thu, 25 Jun 2009 20:35:15 +0000 Subject: [PATCH] --- source/cheatmenu.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/cheatmenu.cpp b/source/cheatmenu.cpp index 17d3f372..bcbef9e4 100644 --- a/source/cheatmenu.cpp +++ b/source/cheatmenu.cpp @@ -108,13 +108,13 @@ int CheatMenu(const char * gameID) if (ret) { const char *tt = options2.GetValue(ret); - if (strcmp(tt,tr("ON"))) + if (strncmp(tt,"ON",2) == 0) { - options2.SetValue(ret,"%s",tr("OFF")); + options2.SetValue(ret,"%s","OFF"); } - else if (strcmp(tt,tr("OFF"))) + else if (strncmp(tt,"OFF",2) == 0) { - options2.SetValue(ret,"%s",tr("ON")); + options2.SetValue(ret,"%s","ON"); } } @@ -128,7 +128,7 @@ int CheatMenu(const char * gameID) for(int i = 0; i <= cntcheats; i++) { const char *tt = options2.GetValue(i+1); - if (strcmp(tt,tr("ON"))) + if (strncmp(tt,"ON",2) == 0) { selectednrs[x] = i; x++;