Eliminated memory leaks of the save state code and put it in a namespace. It is prettier than before, but it could be better (less global usage). Other minor stuff.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7366 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak
2011-03-17 10:17:45 +00:00
parent e4141c331e
commit 78d9f927e1
14 changed files with 264 additions and 392 deletions

View File

@ -171,7 +171,6 @@ bool VideoBackend::Initialize(void *&window_handle)
return false;
}
OSD::AddMessage("Dolphin Direct3D11 Video Backend.", 5000);
s_BackendInitialized = true;
return true;

View File

@ -156,7 +156,6 @@ bool VideoBackend::Initialize(void *&window_handle)
return false;
}
OSD::AddMessage("Dolphin Direct3D9 Video Backend.", 5000);
s_BackendInitialized = true;
return true;

View File

@ -173,7 +173,6 @@ bool VideoBackend::Initialize(void *&window_handle)
if (!OpenGL_Create(window_handle))
return false;
OSD::AddMessage("Dolphin OpenGL Video Backend.", 5000);
s_BackendInitialized = true;
return true;

View File

@ -178,17 +178,12 @@ void VideoSoftware::Video_EnterLoop()
Common::YieldCPU();
}
if (!emuRunningState)
while (!emuRunningState && fifoStateRun)
{
while (!emuRunningState && fifoStateRun)
{
g_video_backend->PeekMessages();
Common::SleepCurrentThread(1);
}
g_video_backend->PeekMessages();
Common::SleepCurrentThread(1);
}
}
}
}
void VideoSoftware::Video_ExitLoop()