mirror of
https://github.com/Atmosphere-NX/hac2l.git
synced 2025-08-07 07:59:28 +02:00
hac2l: fix version decoding
This commit is contained in:
parent
74c9f10eab
commit
af20a5818b
@ -591,7 +591,7 @@ namespace ams::hactool {
|
||||
}
|
||||
this->PrintInteger("Main Thread Priority", ctx.npdm->main_thread_priority);
|
||||
this->PrintInteger("Default Cpu Id", ctx.npdm->default_cpu_id);
|
||||
this->PrintFormat("Version", "%" PRIu32 ".%" PRIu32 ".%" PRIu32 ".%" PRIu32 " (%" PRIu32")", (ctx.npdm->version >> 26) & 0x3F, (ctx.npdm->version >> 20) & 0x3F, (ctx.npdm->version >> 16) & 0x3F, (ctx.npdm->version >> 0) & 0xFFFF, ctx.npdm->version);
|
||||
this->PrintFormat("Version", "%" PRIu32 ".%" PRIu32 ".%" PRIu32 ".%" PRIu32 " (%" PRIu32")", (ctx.npdm->version >> 26) & 0x3F, (ctx.npdm->version >> 20) & 0x3F, (ctx.npdm->version >> 16) & 0xF, (ctx.npdm->version >> 0) & 0xFFFF, ctx.npdm->version);
|
||||
this->PrintHex("Main Thread Stack Size", ctx.npdm->main_thread_stack_size);
|
||||
this->PrintHex("System Resource Size", ctx.npdm->system_resource_size);
|
||||
this->PrintString("Program Name", ctx.npdm->program_name);
|
||||
|
@ -300,7 +300,7 @@ namespace ams::hactool {
|
||||
this->PrintInteger("Wait2 Time Write", enc_data.wait_2_time_write);
|
||||
this->PrintHex8("Fw Mode", enc_data.fw_mode);
|
||||
this->PrintString("Compatibility Type", fs::impl::IdString().ToString(static_cast<fs::GameCardCompatibilityType>(enc_data.compatibility_type)));
|
||||
this->PrintFormat("Cup Version", "%" PRIu32 ".%" PRIu32 ".%" PRIu32 ".%" PRIu32 " (%" PRIu32")", (enc_data.cup_version >> 26) & 0x3F, (enc_data.cup_version >> 20) & 0x3F, (enc_data.cup_version >> 16) & 0x3F, (enc_data.cup_version >> 0) & 0xFFFF, enc_data.cup_version);
|
||||
this->PrintFormat("Cup Version", "%" PRIu32 ".%" PRIu32 ".%" PRIu32 ".%" PRIu32 " (%" PRIu32")", (enc_data.cup_version >> 26) & 0x3F, (enc_data.cup_version >> 20) & 0x3F, (enc_data.cup_version >> 16) & 0xF, (enc_data.cup_version >> 0) & 0xFFFF, enc_data.cup_version);
|
||||
this->PrintId64("Cup Id", enc_data.cup_id);
|
||||
this->PrintBytes("Upp Hash", enc_data.upp_hash, sizeof(enc_data.upp_hash));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user