diff options
| author | donkopunchstania <donkopunchstania@gmail.com> | 2009-11-11 03:14:38 +0000 |
|---|---|---|
| committer | donkopunchstania <donkopunchstania@gmail.com> | 2009-11-11 03:14:38 +0000 |
| commit | 52da977c73a1b9de7e6c5892a67d2ab783b2edcc (patch) | |
| tree | 639be5f3dd438c9daa9697c30b8910470dbde4dd /Source/Plugins/Plugin_VideoSoftware/Src/main.cpp | |
| parent | c2a4e3331356acc40bdbc314b858dd10e49c955b (diff) | |
Fixes to the software plugin command processor. Made it easy to use the command processor in place of the one in video common. Use frame skip setting from the application in the software plugin instead of the internal frame skipping config setting. The WGP does not loop if the write pointer is set beyond the end of the fifo.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4527 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/main.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/main.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/main.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/main.cpp index 7a7d57a064..e3378377dc 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/main.cpp @@ -37,9 +37,7 @@ PLUGIN_GLOBALS* globals = NULL;
-static volatile bool fifoStateRun = false;
SVideoInitialize g_VideoInitialize;
-bool g_SkipFrame;
void GetDllInfo (PLUGIN_INFO* _PluginInfo)
@@ -76,8 +74,6 @@ void Initialize(void *init) SVideoInitialize *_pVideoInitialize = (SVideoInitialize*)init;
g_VideoInitialize = *_pVideoInitialize;
- g_SkipFrame = false;
-
g_Config.Load();
InitBPMemory();
@@ -158,20 +154,12 @@ void Video_Screenshot(const char *_szFilename) // -------------------------------
void Video_EnterLoop()
{
- fifoStateRun = true;
-
- while (fifoStateRun)
- {
- g_VideoInitialize.pPeekMessages();
- if (!CommandProcessor::RunBuffer()) {
- Common::SleepCurrentThread(1);
- }
- }
+ Fifo_EnterLoop(g_VideoInitialize);
}
void Video_ExitLoop()
{
- fifoStateRun = false;
+ Fifo_ExitLoop();
}
void Video_AddMessage(const char* pstr, u32 milliseconds)
@@ -179,7 +167,8 @@ void Video_AddMessage(const char* pstr, u32 milliseconds) }
void Video_SetRendering(bool bEnabled)
-{
+{
+ Fifo_SetRendering(bEnabled);
}
void Video_CommandProcessorRead16(u16& _rReturnValue, const u32 _Address)
|
