diff options
| author | 2020-09-22 13:42:47 -0700 | |
|---|---|---|
| committer | 2020-09-22 13:42:47 -0700 | |
| commit | c07fd2898b45032b5e4084fc49a19018ad099ba6 (patch) | |
| tree | 9f906d43d51ec8421e7294b31380fddbb8ddc060 | |
| parent | Merge pull request #4675 from Morph1984/fix-boot-multicontent (diff) | |
| parent | ips_layer: Eliminate a redundant copy in Parse() (diff) | |
| download | yuzu-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()
| -rw-r--r-- | src/core/file_sys/ips_layer.cpp | 6 |
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")) { |