Fixed the button states in the toolbar when loading, starting, and stopping a game.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4877 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau committed 2010-01-18 12:10:51 +00:00
1 parent 896850b176
commit 335c056586
5 files changed
+107 -29

No files matched your search

+16 -4
View File
@@ -287,6 +287,8 @@ THREAD_RETURN CpuThread(void *pArg)
// Call browser: Init():g_EmuThread(). See the BootManager.cpp file description for a complete call schedule.
THREAD_RETURN EmuThread(void *pArg)
{
Host_UpdateMainFrame(); // Disable any menus or buttons at boot
cpuRunloopQuit.Init();
Common::SetCurrentThreadName("Emuthread - starting");
@@ -389,10 +391,6 @@ THREAD_RETURN EmuThread(void *pArg)
PowerPC::SetMode(PowerPC::MODE_JIT);
else
PowerPC::SetMode(PowerPC::MODE_INTERPRETER);
// Update the window again because all stuff is initialized
Host_UpdateDisasmDialog();
Host_UpdateMainFrame();
// Spawn the CPU thread
Common::Thread *cpuThread = NULL;
@@ -407,6 +405,13 @@ THREAD_RETURN EmuThread(void *pArg)
cpuThread = new Common::Thread(CpuThread, pArg);
Common::SetCurrentThreadName("Video thread");
if (g_pUpdateFPSDisplay != NULL)
g_pUpdateFPSDisplay(("Loaded " + _CoreParameter.m_strFilename).c_str());
// Update the window again because all stuff is initialized
Host_UpdateDisasmDialog();
Host_UpdateMainFrame();
Plugins.GetVideo()->Video_EnterLoop();
}
else // SingleCore mode
@@ -419,6 +424,13 @@ THREAD_RETURN EmuThread(void *pArg)
cpuThread = new Common::Thread(CpuThread, pArg);
Common::SetCurrentThreadName("Emuthread - Idle");
if (g_pUpdateFPSDisplay != NULL)
g_pUpdateFPSDisplay(("Loaded " + _CoreParameter.m_strFilename).c_str());
// Update the window again because all stuff is initialized
Host_UpdateDisasmDialog();
Host_UpdateMainFrame();
// TODO(ector) : investigate using GetMessage instead .. although
// then we lose the powerdown check. ... unless powerdown sends a message :P
while (PowerPC::GetState() != PowerPC::CPU_POWERDOWN)