Uber-fast stop (thanks to smart memory card flushing) and various savestate changes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3659 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-07-03 12:22:32 +00:00
parent 3ddbb094ab
commit 06b65ea425
10 changed files with 83 additions and 18 deletions

View file

@ -266,10 +266,28 @@ void Shutdown(void)
void DoState(unsigned char **ptr, int mode)
{
PointerWrap p(ptr, mode);
return;
// TODO: Shorten the list
//p.Do(g_EmulatorRunning);
//p.Do(g_ISOId);
p.Do(g_FrameOpen);
p.Do(g_RealWiiMotePresent);
p.Do(g_RealWiiMoteInitialized);
p.Do(g_EmulatedWiiMoteInitialized);
p.Do(g_WiimoteUnexpectedDisconnect);
p.Do(g_UpdateCounter);
p.Do(g_UpdateTime);
p.Do(g_UpdateRate);
p.Do(g_UpdateWriteScreen);
p.Do(g_UpdateTimeList);
#if HAVE_WIIUSE
WiiMoteReal::DoState(ptr, mode);
WiiMoteReal::DoState(p);
#endif
WiiMoteEmu::DoState(ptr, mode);
WiiMoteEmu::DoState(p);
}