temporarily allow accessing files by drive letter in Windows

This commit is contained in:
Glenn Maynard
2003-12-04 19:57:19 +00:00
parent 20c3074e5b
commit 17adb99a5e
+10
View File
@@ -1,6 +1,7 @@
#include "global.h"
#include "RageFileManager.h"
#include "RageFileDriver.h"
#include "RageUtil.h"
#include <errno.h>
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()