VERY experimental Nintendo Switch 2 emulator
C++
[cheats] Check for comments in patch line loop (#156)
notenergydrinksc1d9cbca647d
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cppindex d1ac24072e..57a9ce37d5 100644--- a/src/core/file_sys/ips_layer.cpp+++ b/src/core/file_sys/ips_layer.cpp@@ -1,5 +1,5 @@-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project-// SPDX-License-Identifier: GPL-2.0-or-later+// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later#include <algorithm>#include <cstring>@@ -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 patchif (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) {--i;