Directories need to be created on initial startup, not when loading config files.

This commit is contained in:
Stephen Anthony 2019-05-01 18:00:14 -02:30
parent 20d5615f1f
commit 8a0591698a
1 changed files with 4 additions and 4 deletions

View File

@ -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;