//---------------------------------------------SCREEN CONFIGURATION---------------------------------------------------------
//
//
//change $fullscreenOveride to "true" if you want to overide the automatic fullscreen resolution detection
$fullscreenOveride = false;

/*Set $fullscreenRes to be the desired resolution when in fullscreen.
 *Only change the numbers "1024" and "768", DO NOT REMOVE THE "SPC" word
 *To use a custom fullscreen resolution you must set $fullscreenOveride to "true"
 */
$fullscreenRes = 1024 SPC 768;

/*Set $windowRes to be the desired resolution when in windowed mode.
 *Only change the numbers "1024" and "768", DO NOT REMOVE THE "SPC" word
 */
$windowRes = 1024 SPC 768;




//----------------------------------------SPLASH SCREEN CONFIGURATION-------------------------------------------------------
//
//
//Set $splashAmount to be the number of portal splash screens.  Developer splash screens are independant of this number
$splashAmount = 1;

//make sure to add the splash1.jpg - splash[n].jpg to the branding folder found at ROOT/game/branding


//--------------------------------------DO NOT MODIFY ANYTHING FOLLOWING----------------------------------------------------
//
//
$startFullscreen = true;
function loadScreenMode()
{
   %profile = "game/gameScripts/data/saves/settings.sav";
   
   %file = new FileObject();
   %file.OpenForRead(%profile);
   
   %file.readLine();
   %screenMode = %file.readLine();
   if(%screenMode !$= "")
   {
      $startFullscreen = %screenMode;
   }
   
   %file.close();
   %file.delete();
}

loadScreenMode();
