nvservices debug unlock + license change
This commit is contained in:
1 parent
e321a18479
commit
5b70938f91
18 files changed
+147
-14
No files matched your search
@@ -121,9 +121,10 @@ namespace ams::ldr {
|
||||
/* Global NSO header cache. */
|
||||
NsoHeader g_nso_headers[Nso_Count];
|
||||
|
||||
/* Pcv/Ptm check cache */
|
||||
/* Pcv/Ptm/NvServices check cache */
|
||||
bool g_is_pcv;
|
||||
bool g_is_ptm;
|
||||
bool g_is_nvsrv;
|
||||
|
||||
/* Global Zstd decompression context. */
|
||||
constexpr size_t ZstdDctxWorkspaceSize = 0x176E8;
|
||||
@@ -379,6 +380,7 @@ namespace ams::ldr {
|
||||
/* Check if NCA is PCV or PTM */
|
||||
g_is_pcv = meta->aci->program_id == ncm::SystemProgramId::Pcv;
|
||||
g_is_ptm = meta->aci->program_id == ncm::SystemProgramId::Ptm;
|
||||
g_is_nvsrv = meta->aci->program_id == ncm::SystemProgramId::NvServices;
|
||||
|
||||
/* If we have data to validate, validate it. */
|
||||
if (meta->check_verification_data) {
|
||||
@@ -752,6 +754,10 @@ namespace ams::ldr {
|
||||
if (g_is_ptm) {
|
||||
hoc::ptm::Patch(map_address, nso_size);
|
||||
}
|
||||
|
||||
if (g_is_nvsrv) {
|
||||
hoc::nvsrv::Patch(map_address, nso_size, nso_address);
|
||||
}
|
||||
}
|
||||
|
||||
/* Set permissions. */
|
||||
|
||||
Reference in new issue
Block a user