mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-11-01 04:37:52 +00:00
Be more intentional with check
This commit is contained in:
parent
261dc33507
commit
2a5b56bb1d
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ Loader::ResultStatus NCCHContainer::ApplyIPS(std::vector<u8>& ips, std::vector<u
|
||||||
u32 patch_length = ips.size() - 3;
|
u32 patch_length = ips.size() - 3;
|
||||||
std::string ips_header(ips.begin(), ips.begin() + 5);
|
std::string ips_header(ips.begin(), ips.begin() + 5);
|
||||||
|
|
||||||
if (strcmp(ips_header.c_str(), "PATCH"))
|
if (strcmp(ips_header.c_str(), "PATCH") != 0)
|
||||||
return Loader::ResultStatus::Error;
|
return Loader::ResultStatus::Error;
|
||||||
|
|
||||||
while (cursor < patch_length) {
|
while (cursor < patch_length) {
|
||||||
|
|
Loading…
Reference in a new issue