plaform-independent handling of Portable.ini. Portable mode no longer saves inside of a directory called Portable in Win32 (made the platform-independent logic simpler).

This commit is contained in:
Chris Danford
2009-04-11 21:28:31 +00:00
parent 054942663e
commit c0b747ba86
6 changed files with 27 additions and 9 deletions
+4
View File
@@ -949,6 +949,10 @@ int main(int argc, char* argv[])
/* Almost everything uses this to read and write files. Load this early. */
FILEMAN = new RageFileManager( argv[0] );
FILEMAN->MountInitialFilesystems();
bool bPortable = DoesFileExist("Portable.ini");
if( !bPortable )
FILEMAN->MountUserFilesystems();
/* Set this up next. Do this early, since it's needed for RageException::Throw. */
LOG = new RageLog;