Properly handle hbmenu NRO specially

This commit is contained in:
XorTroll 2019-10-14 19:29:44 +02:00
parent bfb8f5ce25
commit cb94963701

View file

@ -10,6 +10,8 @@ namespace hb
void Target(TargetInput input, bool once)
{
int ctr = once ? 1 : -1;
// If we're loading hbmenu, it makes no sense to load the NRO once (opening a homebrew would terminate it, what literally goes against hbmenu's main functionality)
if(strcmp("sdmc:/hbmenu.nro", input.nro_path) == 0) ctr = -1;
hb_hbl_Target(input.nro_path, input.argv, ctr);
}
}