mirror of https://github.com/stella-emu/stella.git
Add file/dir locations to logging.
This commit is contained in:
parent
3112c4deb0
commit
2215b2dee6
|
@ -130,16 +130,23 @@ bool OSystem::create()
|
||||||
buf << "Stella " << STELLA_VERSION << endl
|
buf << "Stella " << STELLA_VERSION << endl
|
||||||
<< " Features: " << myFeatures << endl
|
<< " Features: " << myFeatures << endl
|
||||||
<< " " << myBuildInfo << endl << endl
|
<< " " << myBuildInfo << endl << endl
|
||||||
<< "Base directory: '"
|
<< "Base directory: '"
|
||||||
<< FilesystemNode(myBaseDir).getShortPath() << "'" << endl;
|
<< FilesystemNode(myBaseDir).getShortPath() << "'" << endl
|
||||||
|
<< "State directory: '"
|
||||||
|
<< FilesystemNode(myStateDir).getShortPath() << "'" << endl
|
||||||
|
<< "NVRam directory: '"
|
||||||
|
<< FilesystemNode(myNVRamDir).getShortPath() << "'" << endl;
|
||||||
|
|
||||||
if (!myConfigFile.empty()) buf
|
if(!myConfigFile.empty())
|
||||||
<< "Configuration file: '"
|
buf << "Configuration file: '"
|
||||||
<< FilesystemNode(myConfigFile).getShortPath() << "'" << endl;
|
<< FilesystemNode(myConfigFile).getShortPath() << "'" << endl;
|
||||||
|
|
||||||
buf
|
buf << "Game properties: '"
|
||||||
<< "User game properties: '"
|
<< FilesystemNode(myPropertiesFile).getShortPath() << "'" << endl
|
||||||
<< FilesystemNode(myPropertiesFile).getShortPath() << "'" << endl;
|
<< "Cheat file: '"
|
||||||
|
<< FilesystemNode(myCheatFile).getShortPath() << "'" << endl
|
||||||
|
<< "Palette file: '"
|
||||||
|
<< FilesystemNode(myPaletteFile).getShortPath() << "'" << endl;
|
||||||
Logger::info(buf.str());
|
Logger::info(buf.str());
|
||||||
|
|
||||||
// NOTE: The framebuffer MUST be created before any other object!!!
|
// NOTE: The framebuffer MUST be created before any other object!!!
|
||||||
|
@ -204,7 +211,8 @@ void OSystem::loadConfig(const Settings::Options& options)
|
||||||
if(!node.isDirectory())
|
if(!node.isDirectory())
|
||||||
node.makeDir();
|
node.makeDir();
|
||||||
myBaseDir = node.getPath();
|
myBaseDir = node.getPath();
|
||||||
if (!myConfigFile.empty()) myConfigFile = FilesystemNode(myConfigFile).getPath();
|
if(!myConfigFile.empty())
|
||||||
|
myConfigFile = FilesystemNode(myConfigFile).getPath();
|
||||||
|
|
||||||
FilesystemNode save(myDefaultSaveDir);
|
FilesystemNode save(myDefaultSaveDir);
|
||||||
if(!save.isDirectory())
|
if(!save.isDirectory())
|
||||||
|
@ -218,7 +226,8 @@ void OSystem::loadConfig(const Settings::Options& options)
|
||||||
|
|
||||||
#ifdef SQLITE_SUPPORT
|
#ifdef SQLITE_SUPPORT
|
||||||
mySettingsDb = make_shared<SettingsDb>(myBaseDir, "settings");
|
mySettingsDb = make_shared<SettingsDb>(myBaseDir, "settings");
|
||||||
if (!mySettingsDb->initialize()) mySettingsDb.reset();
|
if(!mySettingsDb->initialize())
|
||||||
|
mySettingsDb.reset();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mySettings->setRepository(createSettingsRepository());
|
mySettings->setRepository(createSettingsRepository());
|
||||||
|
|
Loading…
Reference in New Issue