[cheats] Check for comments in patch line loop

This commit is contained in:
notenergydrinks 2025-07-30 19:25:41 +12:00
parent c609389ec1
commit fcf12835bb

View file

@ -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;