Browse Source
Merge pull request #4697 from lioncash/copy5
ips_layer: Eliminate a redundant copy in Parse()
pull/15/merge
bunnei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
src/core/file_sys/ips_layer.cpp
|
|
|
@ -245,9 +245,11 @@ void IPSwitchCompiler::Parse() { |
|
|
|
|
|
|
|
// Read rest of patch
|
|
|
|
while (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 patch
|
|
|
|
if (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) { |
|
|
|
|