diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index 23226f3fee..63d58d34f7 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -40,15 +40,7 @@ bool VectorsAreEqual( const T &a, const T &b ) static bool TestWrite( CCStringRef sDir ) { - // Try to write a file. - // TODO: Can we use RageFile for this? - CString sFile = sDir + "/temp"; - FILE* fp = fopen( sFile, "w" ); - if( fp == NULL ) - return false; - fclose( fp ); - remove( sFile ); - return true; + return access(sDir, W_OK) == 0; } static bool ExecuteCommand( CCStringRef sCommand )