don't mount unless the profile was loaded from a memory card
This commit is contained in:
@@ -1353,7 +1353,7 @@ void ScreenEvaluation::Input( const DeviceInput& DeviceI, const InputEventType t
|
|||||||
if( !m_bSavedScreenshot[pn] && // only allow one screenshot
|
if( !m_bSavedScreenshot[pn] && // only allow one screenshot
|
||||||
PROFILEMAN->IsUsingProfile(pn) )
|
PROFILEMAN->IsUsingProfile(pn) )
|
||||||
{
|
{
|
||||||
if( PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
|
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) && PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
|
||||||
MEMCARDMAN->MountCard( pn );
|
MEMCARDMAN->MountCard( pn );
|
||||||
|
|
||||||
Profile* pProfile = PROFILEMAN->GetProfile(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 sFileName = SaveScreenshot( sDir, true, true, iScreenshotIndex );
|
||||||
CString sPath = sDir+sFileName;
|
CString sPath = sDir+sFileName;
|
||||||
|
|
||||||
if( PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
|
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) && PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
|
||||||
MEMCARDMAN->UnmountCard( pn );
|
MEMCARDMAN->UnmountCard( pn );
|
||||||
|
|
||||||
if( !sFileName.empty() )
|
if( !sFileName.empty() )
|
||||||
|
|||||||
Reference in New Issue
Block a user