summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2020-09-22 13:42:47 -0700
committerGravatar GitHub2020-09-22 13:42:47 -0700
commitc07fd2898b45032b5e4084fc49a19018ad099ba6 (patch)
tree9f906d43d51ec8421e7294b31380fddbb8ddc060 /src
parentMerge pull request #4675 from Morph1984/fix-boot-multicontent (diff)
parentips_layer: Eliminate a redundant copy in Parse() (diff)
downloadyuzu-c07fd2898b45032b5e4084fc49a19018ad099ba6.tar.gz
yuzu-c07fd2898b45032b5e4084fc49a19018ad099ba6.tar.xz
yuzu-c07fd2898b45032b5e4084fc49a19018ad099ba6.zip
Merge pull request #4697 from lioncash/copy5
ips_layer: Eliminate a redundant copy in Parse()
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/ips_layer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp
index a08a70efd..dd779310f 100644
--- a/src/core/file_sys/ips_layer.cpp
+++ b/src/core/file_sys/ips_layer.cpp
@@ -245,9 +245,11 @@ void IPSwitchCompiler::Parse() {
245 245
246 // Read rest of patch 246 // Read rest of patch
247 while (true) { 247 while (true) {
248 if (i + 1 >= lines.size()) 248 if (i + 1 >= lines.size()) {
249 break; 249 break;
250 const auto patch_line = lines[++i]; 250 }
251
252 const auto& patch_line = lines[++i];
251 253
252 // Start of new patch 254 // Start of new patch
253 if (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) { 255 if (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) {