From 17adb99a5e6a7791bf3c8aafa3a58b0cf0111f87 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 4 Dec 2003 19:57:19 +0000 Subject: [PATCH] temporarily allow accessing files by drive letter in Windows --- stepmania/src/RageFileManager.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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()