The entire file system is brittle and breaks whenever anything changes.

This commit is contained in:
Steve Checkoway
2005-05-24 22:36:15 +00:00
parent 55b8c9ce97
commit 114ac27623
+7
View File
@@ -296,6 +296,13 @@ void RageFileManager::MountInitialFilesystems()
ASSERT_M( parts.size() > 1, ssprintf("Strange DirOfExecutable: %s", DirOfExecutable.c_str()) );
CString Dir = join( "/", parts.begin(), parts.end()-1 );
RageFileManager::Mount( "dir", Dir, "/" );
#elif defined(DARWIN)
CHECKPOINT_M( ssprintf("DOE \"%s\"", DirOfExecutable.c_str()) );
CStringArray parts;
split( DirOfExecutable, "/", parts );
ASSERT( parts.size() > 3 );
CString Dir = '/' + join( "/", parts.begin(), parts.end()-3 );
RageFileManager::Mount( "dir", Dir, "/" );
#else
/* Paths relative to the CWD: */
RageFileManager::Mount( "dir", ".", "/" );