mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-11-24 10:33:04 +00:00
loader/ncch: less verbose log for loading game list. only log program ID when booting
This commit is contained in:
parent
4b931bb913
commit
6551a72ec8
1 changed files with 6 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <cinttypes>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
|
@ -253,7 +254,7 @@ ResultStatus AppLoader_NCCH::LoadExeFS() {
|
||||||
|
|
||||||
// Skip NCSD header and load first NCCH (NCSD is just a container of NCCH files)...
|
// Skip NCSD header and load first NCCH (NCSD is just a container of NCCH files)...
|
||||||
if (MakeMagic('N', 'C', 'S', 'D') == ncch_header.magic) {
|
if (MakeMagic('N', 'C', 'S', 'D') == ncch_header.magic) {
|
||||||
LOG_WARNING(Loader, "Only loading the first (bootable) NCCH within the NCSD file!");
|
LOG_DEBUG(Loader, "Only loading the first (bootable) NCCH within the NCSD file!");
|
||||||
ncch_offset = 0x4000;
|
ncch_offset = 0x4000;
|
||||||
file.Seek(ncch_offset, SEEK_SET);
|
file.Seek(ncch_offset, SEEK_SET);
|
||||||
file.ReadBytes(&ncch_header, sizeof(NCCH_Header));
|
file.ReadBytes(&ncch_header, sizeof(NCCH_Header));
|
||||||
|
@ -277,8 +278,8 @@ ResultStatus AppLoader_NCCH::LoadExeFS() {
|
||||||
priority = exheader_header.arm11_system_local_caps.priority;
|
priority = exheader_header.arm11_system_local_caps.priority;
|
||||||
resource_limit_category = exheader_header.arm11_system_local_caps.resource_limit_category;
|
resource_limit_category = exheader_header.arm11_system_local_caps.resource_limit_category;
|
||||||
|
|
||||||
LOG_INFO(Loader, "Name: %s", exheader_header.codeset_info.name);
|
LOG_DEBUG(Loader, "Name: %s", exheader_header.codeset_info.name);
|
||||||
LOG_INFO(Loader, "Program ID: %016llX", ncch_header.program_id);
|
LOG_DEBUG(Loader, "Program ID: %016" PRIX64, ncch_header.program_id);
|
||||||
LOG_DEBUG(Loader, "Code compressed: %s", is_compressed ? "yes" : "no");
|
LOG_DEBUG(Loader, "Code compressed: %s", is_compressed ? "yes" : "no");
|
||||||
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);
|
||||||
|
@ -336,6 +337,8 @@ ResultStatus AppLoader_NCCH::Load() {
|
||||||
if (result != ResultStatus::Success)
|
if (result != ResultStatus::Success)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
LOG_INFO(Loader, "Program ID: %016" PRIX64, ncch_header.program_id);
|
||||||
|
|
||||||
is_loaded = true; // Set state to loaded
|
is_loaded = true; // Set state to loaded
|
||||||
|
|
||||||
result = LoadExec(); // Load the executable into memory for booting
|
result = LoadExec(); // Load the executable into memory for booting
|
||||||
|
|
Loading…
Reference in a new issue