mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-26 18:45:28 +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)
|
void CMenu::_launchGC(dir_discHdr *hdr, bool DML)
|
||||||
{
|
{
|
||||||
Nand::Instance()->Disable_Emu();
|
|
||||||
m_gameSound.Stop();
|
m_gameSound.Stop();
|
||||||
CheckGameSoundThread();
|
|
||||||
char* id = (char *)hdr->hdr.id;
|
char* id = (char *)hdr->hdr.id;
|
||||||
if(has_enabled_providers() && _initNetwork() == 0)
|
if(has_enabled_providers() && _initNetwork() == 0)
|
||||||
add_game_to_card(id);
|
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_cfg.setString("DML", "current_item", id);
|
||||||
m_gcfg1.setInt("PLAYCOUNT", id, m_gcfg1.getInt("PLAYCOUNT", id, 0) + 1);
|
m_gcfg1.setInt("PLAYCOUNT", id, m_gcfg1.getInt("PLAYCOUNT", id, 0) + 1);
|
||||||
m_gcfg1.setUInt("LASTPLAYED", id, time(NULL));
|
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_Init();
|
||||||
WDVD_StopMotor();
|
WDVD_StopMotor();
|
||||||
@ -704,6 +695,21 @@ void CMenu::_launchGC(dir_discHdr *hdr, bool DML)
|
|||||||
VIDEO_Flush();
|
VIDEO_Flush();
|
||||||
VIDEO_WaitVSync();
|
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 )
|
if(WII_LaunchTitle(0x100000100LL) < 0 )
|
||||||
Sys_LoadMenu();
|
Sys_LoadMenu();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user