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 sFileName = SaveScreenshot( sDir, true, true, iScreenshotIndex );
|
||||||
CString sPath = sDir+sFileName;
|
CString sPath = sDir+sFileName;
|
||||||
|
|
||||||
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) )
|
|
||||||
MEMCARDMAN->UnmountCard( pn );
|
|
||||||
|
|
||||||
if( !sFileName.empty() )
|
if( !sFileName.empty() )
|
||||||
{
|
{
|
||||||
Screenshot screenshot;
|
Screenshot screenshot;
|
||||||
@@ -1336,6 +1333,9 @@ void ScreenEvaluation::Input( const DeviceInput& DeviceI, const InputEventType t
|
|||||||
pProfile->AddScreenshot( screenshot );
|
pProfile->AddScreenshot( screenshot );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) )
|
||||||
|
MEMCARDMAN->UnmountCard( pn );
|
||||||
|
|
||||||
m_bSavedScreenshot[pn] = true;
|
m_bSavedScreenshot[pn] = true;
|
||||||
return; // handled
|
return; // handled
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user