mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-23 19:59:16 +01:00
-only enable gc streaming if we actually boot a disc
-moved ios reload block call directly behind return to channel call
This commit is contained in:
parent
a99c4e1b72
commit
ac3816d7e9
@ -248,7 +248,7 @@ s32 Disc_Init(void)
|
||||
return WDVD_Init();
|
||||
}
|
||||
|
||||
s32 Disc_Open(void)
|
||||
s32 Disc_Open(bool boot_disc)
|
||||
{
|
||||
/* Reset drive */
|
||||
s32 ret = WDVD_Reset();
|
||||
@ -260,7 +260,8 @@ s32 Disc_Open(void)
|
||||
ret = WDVD_ReadDiskId(diskid);
|
||||
|
||||
/* Directly set Audio Streaming for GC*/
|
||||
gprintf("Setting Audio Streaming for GC Games: 0x%08x\n", WDVD_SetStreaming());
|
||||
if(boot_disc)
|
||||
gprintf("Setting Audio Streaming for GC Games: 0x%08x\n", WDVD_SetStreaming());
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ extern "C" {
|
||||
|
||||
/* Prototypes */
|
||||
s32 Disc_Init(void);
|
||||
s32 Disc_Open(void);
|
||||
s32 Disc_Open(bool);
|
||||
s32 Disc_Wait(void);
|
||||
s32 Disc_SetUSB(const u8 *);
|
||||
s32 Disc_ReadHeader(void *);
|
||||
|
@ -199,7 +199,7 @@ bool GCDump::__WaitForDisc(u8 dsc, u32 msg)
|
||||
if(Disc_Wait() < 0)
|
||||
continue;
|
||||
|
||||
if(Disc_Open() < 0)
|
||||
if(Disc_Open(true) < 0)
|
||||
{
|
||||
MEM2_free(ReadBuffer);
|
||||
return false;
|
||||
|
@ -1120,7 +1120,7 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd)
|
||||
} while(!(cover & 0x2));
|
||||
}
|
||||
/* Open Disc */
|
||||
if (Disc_Open() < 0)
|
||||
if (Disc_Open(true) < 0)
|
||||
{
|
||||
error(_t("wbfsoperr2", L"Disc_Open failed"));
|
||||
if (BTN_B_PRESSED) return;
|
||||
@ -1308,6 +1308,7 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd)
|
||||
IOS_Close(ESHandle);
|
||||
}
|
||||
}
|
||||
IOSReloadBlock(IOS_GetVersion(), true);
|
||||
if(emulate_mode)
|
||||
{
|
||||
Nand::Instance()->Init(emuPath.c_str(), emuPartition, false);
|
||||
@ -1342,14 +1343,13 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd)
|
||||
return;
|
||||
}
|
||||
|
||||
if (Disc_Open() < 0)
|
||||
if (Disc_Open(false) < 0)
|
||||
{
|
||||
error(_t("wbfsoperr2", L"Disc_Open failed"));
|
||||
if (iosLoaded) Sys_LoadMenu();
|
||||
return;
|
||||
}
|
||||
}
|
||||
IOSReloadBlock(IOS_GetVersion(), true);
|
||||
|
||||
USBStorage_Deinit();
|
||||
if(currentPartition == 0)
|
||||
|
@ -319,7 +319,7 @@ bool CMenu::_wbfsOp(CMenu::WBFS_OP op)
|
||||
out = true;
|
||||
break;
|
||||
}
|
||||
if (Disc_Open() < 0)
|
||||
if (Disc_Open(true) < 0)
|
||||
{
|
||||
error(_t("wbfsoperr2", L"Disc_Open failed"));
|
||||
out = true;
|
||||
|
Loading…
Reference in New Issue
Block a user