add kip detection
This commit is contained in:
@@ -170,6 +170,12 @@ namespace ams::ldr::hoc::pcv {
|
||||
}
|
||||
}
|
||||
|
||||
void WriteKipLoadToIram() {
|
||||
const u32 hocMagic = 0x686F634D;
|
||||
constexpr uintptr_t LoadMagicAddress = 0x4003DC00 ; /* Should be a pretty safe address. */
|
||||
R_DISCARD(SmcCopyToIram(LoadMagicAddress, &hocMagic, sizeof(hocMagic)));
|
||||
}
|
||||
|
||||
void Patch(uintptr_t mapped_nso, size_t nso_size) {
|
||||
SafetyCheck();
|
||||
|
||||
@@ -179,6 +185,8 @@ namespace ams::ldr::hoc::pcv {
|
||||
} else {
|
||||
erista::Patch(mapped_nso, nso_size);
|
||||
}
|
||||
|
||||
WriteKipLoadToIram();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user