temporarily allow accessing files by drive letter in Windows
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "RageFileManager.h"
|
#include "RageFileManager.h"
|
||||||
#include "RageFileDriver.h"
|
#include "RageFileDriver.h"
|
||||||
|
#include "RageUtil.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
RageFileManager *FILEMAN = NULL;
|
RageFileManager *FILEMAN = NULL;
|
||||||
@@ -34,6 +35,15 @@ RageFileManager::RageFileManager()
|
|||||||
/* Absolute paths. This is rarely used, eg. by Alsa9Buf::GetSoundCardDebugInfo(). */
|
/* Absolute paths. This is rarely used, eg. by Alsa9Buf::GetSoundCardDebugInfo(). */
|
||||||
RageFileManager::AddFS( "dir", "/", "/" );
|
RageFileManager::AddFS( "dir", "/", "/" );
|
||||||
#endif
|
#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()
|
RageFileManager::~RageFileManager()
|
||||||
|
|||||||
Reference in New Issue
Block a user