From fcf12835bb08dc7dd52f969092f35413c7e3fdd7 Mon Sep 17 00:00:00 2001 From: notenergydrinks Date: Wed, 30 Jul 2025 19:25:41 +1200 Subject: [PATCH] [cheats] Check for comments in patch line loop --- src/core/file_sys/ips_layer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index d1ac24072e..aa7a50f857 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -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;