whb: Only register home button denied callback when booted from HBL.

This commit is contained in:
James Benton 2019-11-23 11:32:13 +00:00
parent 7d0f02b5e6
commit e9f8b191e5

View File

@ -62,8 +62,11 @@ WHBProcInit()
sMainCore = OSGetCoreId();
sRunning = TRUE;
ProcUIInitEx(&procSaveCallback, NULL);
ProcUIRegisterCallback(PROCUI_CALLBACK_HOME_BUTTON_DENIED,
&procHomeButtonDenied, NULL, 100);
if (sFromHBL) {
ProcUIRegisterCallback(PROCUI_CALLBACK_HOME_BUTTON_DENIED,
&procHomeButtonDenied, NULL, 100);
}
}
void