[cheats] Check for comments in patch line loop
This commit is contained in:
parent
c609389ec1
commit
fcf12835bb
1 changed files with 5 additions and 0 deletions
|
@ -255,6 +255,11 @@ void IPSwitchCompiler::Parse() {
|
|||
|
||||
const auto& patch_line = lines[++i];
|
||||
|
||||
// Patch line may contain comments
|
||||
if (StartsWith(patch_line, "//")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Start of new patch
|
||||
if (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) {
|
||||
--i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue