diff --git a/stepmania/src/RageFileManager.cpp b/stepmania/src/RageFileManager.cpp index a9ca2922f2..6e6254e86d 100644 --- a/stepmania/src/RageFileManager.cpp +++ b/stepmania/src/RageFileManager.cpp @@ -1,6 +1,7 @@ #include "global.h" #include "RageFileManager.h" #include "RageFileDriver.h" +#include "RageUtil.h" #include RageFileManager *FILEMAN = NULL; @@ -34,6 +35,15 @@ RageFileManager::RageFileManager() /* Absolute paths. This is rarely used, eg. by Alsa9Buf::GetSoundCardDebugInfo(). */ RageFileManager::AddFS( "dir", "/", "/" ); #endif + +#if defined(WIN32) + /* Temporary hack for accessing files by drive letter. */ + for( char c = 'A'; c <= 'Z'; ++c ) + { + const CString path = ssprintf( "%c:/", c ); + RageFileManager::AddFS( "dir", path, path ); + } +#endif } RageFileManager::~RageFileManager()