mirror of
https://github.com/wiiu-env/homebrew_on_menu_plugin.git
synced 2024-11-25 11:56:53 +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) {
|
if (!gFileHandleWrapper[i].inUse) {
|
||||||
gFileHandleWrapper[i].inUse = true;
|
gFileHandleWrapper[i].inUse = true;
|
||||||
res = i;
|
res = i;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OSMemoryBarrier();
|
OSMemoryBarrier();
|
||||||
|
@ -52,6 +52,7 @@ INITIALIZE_PLUGIN() {
|
|||||||
memset((void *) ¤t_launched_title_info, 0, sizeof(current_launched_title_info));
|
memset((void *) ¤t_launched_title_info, 0, sizeof(current_launched_title_info));
|
||||||
memset((void *) &gLaunchXML, 0, sizeof(gLaunchXML));
|
memset((void *) &gLaunchXML, 0, sizeof(gLaunchXML));
|
||||||
memset((void *) &gFileInfos, 0, sizeof(gFileInfos));
|
memset((void *) &gFileInfos, 0, sizeof(gFileInfos));
|
||||||
|
memset((void *) &gFileHandleWrapper, 0, sizeof(gFileHandleWrapper));
|
||||||
gHomebrewLaunched = FALSE;
|
gHomebrewLaunched = FALSE;
|
||||||
OSInitMutex(&fileWrapperMutex);
|
OSInitMutex(&fileWrapperMutex);
|
||||||
OSInitMutex(&fileinfoMutex);
|
OSInitMutex(&fileinfoMutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user