Skip to content

Commit

Permalink
Fix stopping emulation.
Browse files Browse the repository at this point in the history
  • Loading branch information
comex committed Sep 18, 2013
1 parent cdea573 commit 3833ccc
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Source/Core/VideoCommon/Src/Fifo.cpp
Expand Up @@ -84,20 +84,11 @@ void Fifo_SetRendering(bool enabled)
g_bSkipCurrentFrame = !enabled;
}

// May be executed from any thread, even the graphics thread.
// Created to allow for self shutdown.
void ExitGpuLoop()
{
// this sucks, do this better
abort();
/*
// This should break the wait loop in CPU thread
CommandProcessor::fifo.bFF_GPReadEnable = false;
SCPFifoStruct &fifo = CommandProcessor::fifo;
while(fifo.isGpuReadingData) Common::YieldCPU();
*/
// Terminate GPU thread loop
GpuRunningState = false;
// No need to wait - g_EmuThread.join() will take care of it.
EmuRunningState = true;
}

Expand Down

0 comments on commit 3833ccc

Please sign in to comment.