mirror of
https://github.com/wiiu-env/homebrew_on_menu_plugin.git
synced 2024-11-22 02:29:15 +01:00
Fix .wuhb loading when more than .wuhb is on the sd card
This commit is contained in:
parent
a1ea9531ad
commit
fffe25e00b
@ -19,6 +19,7 @@ int FileHandleWrapper_GetSlot() {
|
||||
if (!gFileHandleWrapper[i].inUse) {
|
||||
gFileHandleWrapper[i].inUse = true;
|
||||
res = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
OSMemoryBarrier();
|
||||
|
@ -52,6 +52,7 @@ INITIALIZE_PLUGIN() {
|
||||
memset((void *) ¤t_launched_title_info, 0, sizeof(current_launched_title_info));
|
||||
memset((void *) &gLaunchXML, 0, sizeof(gLaunchXML));
|
||||
memset((void *) &gFileInfos, 0, sizeof(gFileInfos));
|
||||
memset((void *) &gFileHandleWrapper, 0, sizeof(gFileHandleWrapper));
|
||||
gHomebrewLaunched = FALSE;
|
||||
OSInitMutex(&fileWrapperMutex);
|
||||
OSInitMutex(&fileinfoMutex);
|
||||
|
Loading…
Reference in New Issue
Block a user