fix umounting cards too soon, causing MD5 to fail

This commit is contained in:
Glenn Maynard
2005-04-28 20:42:42 +00:00
parent 5ad0e419ba
commit a8069bd2f9
+3 -3
View File
@@ -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
}