fix temp file written to wrong location
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user