Instead of manually pausing and unpausing, automatically pause the

memory card thread when mounting the first drive, and automatically
unpause it when we unmount the last drive.  (We can do this simplification
because we always mount and unmount memory cards explicitly when
reading and writing to them.)
This commit is contained in:
Glenn Maynard
2005-01-27 22:57:18 +00:00
parent d7a279efb9
commit 18b0c5f2d9
4 changed files with 36 additions and 12 deletions
-2
View File
@@ -1357,7 +1357,6 @@ void ScreenEvaluation::Input( const DeviceInput& DeviceI, const InputEventType t
if( !m_bSavedScreenshot[pn] && // only allow one screenshot
PROFILEMAN->IsUsingProfile(pn) )
{
MEMCARDMAN->PauseMountingThread();
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) )
MEMCARDMAN->MountCard( pn );
@@ -1369,7 +1368,6 @@ void ScreenEvaluation::Input( const DeviceInput& DeviceI, const InputEventType t
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) )
MEMCARDMAN->UnmountCard( pn );
MEMCARDMAN->UnPauseMountingThread();
if( !sFileName.empty() )
{