don't mount unless the profile was loaded from a memory card

This commit is contained in:
Chris Danford
2004-10-03 05:49:10 +00:00
parent 9fe9b0884a
commit 5d954e5659
+2 -2
View File
@@ -1353,7 +1353,7 @@ void ScreenEvaluation::Input( const DeviceInput& DeviceI, const InputEventType t
if( !m_bSavedScreenshot[pn] && // only allow one screenshot
PROFILEMAN->IsUsingProfile(pn) )
{
if( PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) && PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
MEMCARDMAN->MountCard( pn );
Profile* pProfile = PROFILEMAN->GetProfile(pn);
@@ -1362,7 +1362,7 @@ void ScreenEvaluation::Input( const DeviceInput& DeviceI, const InputEventType t
CString sFileName = SaveScreenshot( sDir, true, true, iScreenshotIndex );
CString sPath = sDir+sFileName;
if( PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) && PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
MEMCARDMAN->UnmountCard( pn );
if( !sFileName.empty() )