mirror of https://github.com/stella-emu/stella.git
OSystem changes so Win32 port compiles again.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1334 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
618d2b3ba0
commit
06ebb24bb6
|
@ -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: OSystemWin32.cxx,v 1.18 2007-06-20 20:36:28 stephena Exp $
|
// $Id: OSystemWin32.cxx,v 1.19 2007-07-31 00:45:28 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
@ -24,37 +24,28 @@
|
||||||
#include "OSystem.hxx"
|
#include "OSystem.hxx"
|
||||||
#include "OSystemWin32.hxx"
|
#include "OSystemWin32.hxx"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Each derived class is responsible for calling the following methods
|
Each derived class is responsible for calling the following methods
|
||||||
in its constructor:
|
in its constructor:
|
||||||
|
|
||||||
setBaseDir()
|
setBaseDir()
|
||||||
setStateDir()
|
setConfigFile()
|
||||||
setPropertiesDir()
|
|
||||||
setConfigFile()
|
See OSystem.hxx for a further explanation
|
||||||
setCacheFile()
|
*/
|
||||||
|
|
||||||
See OSystem.hxx for a further explanation
|
|
||||||
*/
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
OSystemWin32::OSystemWin32(const string& path) : OSystem()
|
OSystemWin32::OSystemWin32()
|
||||||
|
: OSystem()
|
||||||
{
|
{
|
||||||
// TODO - there really should be code here to determine which version
|
// TODO - there really should be code here to determine which version
|
||||||
// of Windows is being used.
|
// of Windows is being used.
|
||||||
// If using a version which supports multiple users (NT and above),
|
// If using a version which supports multiple users (NT and above),
|
||||||
// the relevant directories should be created in per-user locations.
|
// the relevant directories should be created in per-user locations.
|
||||||
// For now, we just put it in the same directory as the executable.
|
// For now, we just put it in the same directory as the executable.
|
||||||
const string& basedir = (path.length() > 0) ? path : ".";
|
const string& basedir = ".";
|
||||||
|
|
||||||
setBaseDir(basedir);
|
setBaseDir(basedir);
|
||||||
|
|
||||||
setStateDir(basedir + "\\state\\");
|
|
||||||
|
|
||||||
setPropertiesDir(basedir);
|
|
||||||
setConfigFile(basedir + "\\stella.ini");
|
setConfigFile(basedir + "\\stella.ini");
|
||||||
|
|
||||||
setCacheFile(basedir + "\\stella.cache");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue