Updated the Windows port concerning the recent Settings class changes.

Mark, if you're reading this, the OSX port will need to be fixed as well.
The changes are trivial.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@344 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2004-08-18 21:20:55 +00:00
parent 97aabd229a
commit a76e7516a8
1 changed files with 20 additions and 9 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // this file, and for a DISCLAIMER OF ALL WARRANTIES.
// //
// $Id: SettingsWin32.cxx,v 1.10 2004-08-06 01:53:50 stephena Exp $ // $Id: SettingsWin32.cxx,v 1.11 2004-08-18 21:20:55 stephena Exp $
//============================================================================ //============================================================================
#include <sstream> #include <sstream>
@ -40,17 +40,28 @@ SettingsWin32::SettingsWin32()
myStateDir = stelladir + "state\\"; myStateDir = stelladir + "state\\";
_mkdir(myStateDir.c_str()); _mkdir(myStateDir.c_str());
myUserPropertiesFile = stelladir + "stella.pro"; string userPropertiesFile = stelladir + "stella.pro";
mySystemPropertiesFile = stelladir + "stella.pro"; // string systemPropertiesFile = stelladir + "stella.pro";
myUserConfigFile = stelladir + "stella.ini"; string userConfigFile = stelladir + "stella.ini";
mySystemConfigFile = stelladir + "stella.ini"; // string systemConfigFile = stelladir + "stella.ini";
// Set up the names of the input and output config files // Set up the names of the input and output config files
mySettingsOutputFilename = myUserConfigFile; myConfigOutputFile = userConfigFile;
if(fileExists(myUserConfigFile)) if(fileExists(userConfigFile))
mySettingsInputFilename = myUserConfigFile; myConfigInputFile = userConfigFile;
// else if(fileExists(systemConfigFile))
// myConfigInputFile = systemConfigFile;
else else
mySettingsInputFilename = mySystemConfigFile; myConfigInputFile = "";
// Set up the input and output properties files
myPropertiesOutputFile = userPropertiesFile;
if(fileExists(userPropertiesFile))
myPropertiesInputFile = userPropertiesFile;
// else if(fileExists(systemPropertiesFile))
// myPropertiesInputFile = systemPropertiesFile;
else
myPropertiesInputFile = "";
// Now create Win32 specific settings // Now create Win32 specific settings
set("romdir", "roms"); set("romdir", "roms");