mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-11 11:29:09 +01:00
-changed DML game launching, it's a bit faster now
This commit is contained in:
parent
3331276043
commit
29ae0f2718
@ -635,9 +635,7 @@ extern "C" {extern void USBStorage_Deinit(void);}
|
||||
|
||||
void CMenu::_launchGC(dir_discHdr *hdr, bool DML)
|
||||
{
|
||||
Nand::Instance()->Disable_Emu();
|
||||
m_gameSound.Stop();
|
||||
CheckGameSoundThread();
|
||||
char* id = (char *)hdr->hdr.id;
|
||||
if(has_enabled_providers() && _initNetwork() == 0)
|
||||
add_game_to_card(id);
|
||||
@ -681,13 +679,6 @@ void CMenu::_launchGC(dir_discHdr *hdr, bool DML)
|
||||
m_cfg.setString("DML", "current_item", id);
|
||||
m_gcfg1.setInt("PLAYCOUNT", id, m_gcfg1.getInt("PLAYCOUNT", id, 0) + 1);
|
||||
m_gcfg1.setUInt("LASTPLAYED", id, time(NULL));
|
||||
m_gcfg1.save(true);
|
||||
m_cfg.save(true);
|
||||
|
||||
cleanup();
|
||||
Close_Inputs();
|
||||
USBStorage_Deinit();
|
||||
SDHC_Init();
|
||||
|
||||
WDVD_Init();
|
||||
WDVD_StopMotor();
|
||||
@ -704,6 +695,21 @@ void CMenu::_launchGC(dir_discHdr *hdr, bool DML)
|
||||
VIDEO_Flush();
|
||||
VIDEO_WaitVSync();
|
||||
|
||||
m_gcfg1.save(true);
|
||||
m_gcfg2.save(true);
|
||||
m_cat.save(true);
|
||||
m_cfg.save(true);
|
||||
|
||||
CheckGameSoundThread();
|
||||
_hideWaitMessage();
|
||||
|
||||
cleanup();
|
||||
Close_Inputs();
|
||||
USBStorage_Deinit();
|
||||
SDHC_Init();
|
||||
|
||||
Nand::Instance()->Disable_Emu();
|
||||
|
||||
if(WII_LaunchTitle(0x100000100LL) < 0 )
|
||||
Sys_LoadMenu();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user