From 6e67494db0556d4ba7a320771b6feaeebb52d8da Mon Sep 17 00:00:00 2001 From: pal1000 Date: Mon, 11 Nov 2013 12:01:44 +0200 Subject: [PATCH] Cwcheat: Allow comments in cheat files starting with // mainly for writing cheat usage guidelines --- Core/CwCheat.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 4d82886c99..cbd0bc2c20 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -114,7 +114,10 @@ void CWCheatEngine::CreateCodeList() { //Creates code list to be used in functio continue; //Line indicates Disc ID, not needed for cheats } if (initialCodesList[i].substr(0,2) == "_G") { - continue; //Line indicates game Title, also not needed for cheats. + continue; //Line indicates game Title, also not needed for cheats + } + if (initialCodesList[i].substr(0,2) == "//") { + continue; //Line indicates comment, also not needed for cheats. } if (initialCodesList[i].substr(0,3) == "_C1") { cheatEnabled = true;