From 7bf4380fb5bd8aad01bf507596bcc44a469f0f73 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 10 Dec 2005 01:46:58 +0000 Subject: [PATCH] reuse Mount and Unmount --- .../src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index 3955806c12..b44c89e486 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -210,7 +210,7 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vectorMount(&d) ) { d.SetError( "MountFailed" ); continue; @@ -232,7 +232,7 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vectorUnmount( "dir", d.sOsMountDir, TEMP_MOUNT_POINT ); } - ExecuteCommand( "sync; umount -l \"" + d.sOsMountDir + "\"" ); + this->Unmount( &d ); LOG->Trace( "WriteTest: %s, Name: %s", d.m_State == UsbStorageDevice::STATE_ERROR? "failed":"succeeded", d.sName.c_str() ); }