From ca7d4b7456534a601eeb8427c535d4c68f66c36c Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 18 Dec 2003 03:57:21 +0000 Subject: [PATCH] fix temp file written to wrong location --- stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;