VERY experimental Nintendo Switch 2 emulator
C++
ips_layer: Eliminate a redundant copy in Parse()
Lioncash485eec243d3e
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cppindex a08a70efdf..dd779310f8 100644--- a/src/core/file_sys/ips_layer.cpp+++ b/src/core/file_sys/ips_layer.cpp@@ -245,9 +245,11 @@ void IPSwitchCompiler::Parse() {// Read rest of patchwhile (true) {- if (i + 1 >= lines.size())+ if (i + 1 >= lines.size()) {break;- const auto patch_line = lines[++i];+ }++ const auto& patch_line = lines[++i];// Start of new patchif (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) {