diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp index 73c005921e..a490ec41a4 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp @@ -215,7 +215,10 @@ bool MemoryCardDriver_Linux::MountAndTestWrite( UsbStorageDevice* pDevice ) // Try to write a file. // TODO: Can we use RageFile for this? - const CString sFile = "temp"; + CString sFile = usbd.sOsMountDir; + if( sFile[sFile.length()-1 != '/' ) + sFile += '/'; + sFile += "temp"; int fd = open( sFile, O_WRONLY|O_CREAT|O_TRUNC ); if( fd == -1 ) return false;