fix umounting cards too soon, causing MD5 to fail
This commit is contained in:
@@ -1324,9 +1324,6 @@ void ScreenEvaluation::Input( const DeviceInput& DeviceI, const InputEventType t
|
||||
CString sFileName = SaveScreenshot( sDir, true, true, iScreenshotIndex );
|
||||
CString sPath = sDir+sFileName;
|
||||
|
||||
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) )
|
||||
MEMCARDMAN->UnmountCard( pn );
|
||||
|
||||
if( !sFileName.empty() )
|
||||
{
|
||||
Screenshot screenshot;
|
||||
@@ -1336,6 +1333,9 @@ void ScreenEvaluation::Input( const DeviceInput& DeviceI, const InputEventType t
|
||||
pProfile->AddScreenshot( screenshot );
|
||||
}
|
||||
|
||||
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) )
|
||||
MEMCARDMAN->UnmountCard( pn );
|
||||
|
||||
m_bSavedScreenshot[pn] = true;
|
||||
return; // handled
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user