mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 04:30:06 +00:00
Loader/NCCH: Ignore compression flag in ExHeader
There seem to be some bad NCCHs around that have this flag unset even though the .code is compressed. This adds a warning message in these cases and forces the flag on.
This commit is contained in:
parent
c04062cb0f
commit
80bffd568a
@ -280,6 +280,13 @@ ResultStatus AppLoader_NCCH::LoadExeFS() {
|
|||||||
LOG_INFO(Loader, "Name: %s", exheader_header.codeset_info.name);
|
LOG_INFO(Loader, "Name: %s", exheader_header.codeset_info.name);
|
||||||
LOG_INFO(Loader, "Program ID: %016llX", ncch_header.program_id);
|
LOG_INFO(Loader, "Program ID: %016llX", ncch_header.program_id);
|
||||||
LOG_DEBUG(Loader, "Code compressed: %s", is_compressed ? "yes" : "no");
|
LOG_DEBUG(Loader, "Code compressed: %s", is_compressed ? "yes" : "no");
|
||||||
|
if (!is_compressed) {
|
||||||
|
LOG_WARNING(Loader,
|
||||||
|
"Code section is not compressed. This is very unusual and might be handled "
|
||||||
|
"incorrectly by Citra.");
|
||||||
|
LOG_WARNING(Loader, "Forcing compression on...");
|
||||||
|
is_compressed = true;
|
||||||
|
}
|
||||||
LOG_DEBUG(Loader, "Entry point: 0x%08X", entry_point);
|
LOG_DEBUG(Loader, "Entry point: 0x%08X", entry_point);
|
||||||
LOG_DEBUG(Loader, "Code size: 0x%08X", code_size);
|
LOG_DEBUG(Loader, "Code size: 0x%08X", code_size);
|
||||||
LOG_DEBUG(Loader, "Stack size: 0x%08X", stack_size);
|
LOG_DEBUG(Loader, "Stack size: 0x%08X", stack_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user