loader: make ShouldOverrideContents take a tid argument

This commit is contained in:
misson20000
2018-10-10 20:45:54 -07:00
committed by SciresM
parent a502d31cd1
commit 376feb63bd
4 changed files with 7 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ Result ContentManagement::MountCode(u64 tid, FsStorageId sid) {
RefreshConfigurationData();
}
if (ShouldOverrideContents() && R_SUCCEEDED(MountCodeNspOnSd(tid))) {
if (ShouldOverrideContents(tid) && R_SUCCEEDED(MountCodeNspOnSd(tid))) {
return 0x0;
}
@@ -302,7 +302,7 @@ bool ContentManagement::ShouldReplaceWithHBL(u64 tid) {
return g_mounted_hbl_nsp && tid == g_override_hbl_tid;
}
bool ContentManagement::ShouldOverrideContents() {
bool ContentManagement::ShouldOverrideContents(u64 tid) {
if (HasCreatedTitle(0x0100000000001000)) {
u64 kDown = 0;
bool keys_triggered = (R_SUCCEEDED(HidManagement::GetKeysDown(&kDown)) && ((kDown & g_override_key_combination) != 0));
@@ -311,4 +311,4 @@ bool ContentManagement::ShouldOverrideContents() {
/* Always redirect before qlaunch. */
return g_has_initialized_fs_dev;
}
}
}