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:
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user