ncch_container: Fix code.bin replacement

Currently, having a replacement code.bin causes Citra to crash as it is
trying to load icon data from code.bin because of a typo. This commit
fixes that typo.
This commit is contained in:
Léo Lam 2019-06-30 11:48:28 +02:00
parent 0b4be6e53a
commit 70fe0d22de

View File

@ -559,7 +559,7 @@ Loader::ResultStatus NCCHContainer::LoadOverrideExeFSSection(const char* name,
if (!strcmp(name, ".code")) if (!strcmp(name, ".code"))
override_name = "code.bin"; override_name = "code.bin";
else if (!strcmp(name, "icon")) else if (!strcmp(name, "icon"))
override_name = "code.bin"; override_name = "icon.bin";
else if (!strcmp(name, "banner")) else if (!strcmp(name, "banner"))
override_name = "banner.bnr"; override_name = "banner.bnr";
else if (!strcmp(name, "logo")) else if (!strcmp(name, "logo"))