mirror of https://github.com/stella-emu/stella.git
Directories need to be created on initial startup, not when loading config files.
This commit is contained in:
parent
20d5615f1f
commit
8a0591698a
|
@ -117,6 +117,9 @@ OSystem::~OSystem()
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
bool OSystem::create()
|
||||
{
|
||||
// Get updated paths for all configuration files
|
||||
setConfigPaths();
|
||||
|
||||
ostringstream buf;
|
||||
buf << "Stella " << STELLA_VERSION << endl
|
||||
<< " Features: " << myFeatures << endl
|
||||
|
@ -202,9 +205,6 @@ void OSystem::loadConfig(const Settings::Options& options)
|
|||
load.makeDir();
|
||||
myDefaultLoadDir = load.getShortPath();
|
||||
|
||||
// Get updated paths for all configuration files
|
||||
setConfigPaths();
|
||||
|
||||
#ifdef SQLITE_SUPPORT
|
||||
mySettingsDb = make_shared<SettingsDb>(myBaseDir, "settings");
|
||||
if (!mySettingsDb->initialize()) mySettingsDb.reset();
|
||||
|
@ -265,7 +265,7 @@ void OSystem::setConfigPaths()
|
|||
myPropertiesFile = FilesystemNode(myBaseDir + "stella.pro").getPath();
|
||||
|
||||
#if 0
|
||||
// TODO - remove this
|
||||
// Debug code
|
||||
auto dbgPath = [](const string& desc, const string& location)
|
||||
{
|
||||
cerr << desc << ": " << location << endl;
|
||||
|
|
Loading…
Reference in New Issue