Fix unnecessary remounts of cards that weren't changed since last update.\nDon't do OS mounts or unmounts while after cards are locked. It can cause skips.

This commit is contained in:
Chris Danford
2004-08-08 18:44:41 +00:00
parent fc4251f798
commit 551800cceb
7 changed files with 59 additions and 24 deletions
@@ -4,6 +4,21 @@
#include "arch/arch_platform.h"
bool UsbStorageDevice::operator==(const UsbStorageDevice& other) const
{
// LOG->Trace( "Comparing %d %d %d %s %s to %d %d %d %s %s",
// iBus, iPort, iLevel, sName.c_str(), sOsMountDir.c_str(),
// other.iBus, other.iPort, other.iLevel, other.sName.c_str(), other.sOsMountDir.c_str() );
#define COMPARE(x) if( x != other.x ) return false;
COMPARE( iBus );
COMPARE( iPort );
COMPARE( iLevel );
COMPARE( sOsMountDir );
return true;
#undef COMPARE
}
MemoryCardDriver *MakeMemoryCardDriver()
{
if( !PREFSMAN->m_bMemoryCards )