Fix settings file import on windows.

This commit is contained in:
Christian Speckner 2021-01-02 17:50:58 +01:00
parent b101fcc7ce
commit b55bdc3a1d
1 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,12 @@
namespace {
constexpr Int32 CURRENT_VERSION = 1;
#ifdef BSPF_WINDOWS
constexpr char LEGACY_SETTINGS_FILE[] = "stella.ini";
#else
constexpr char LEGACY_SETTINGS_FILE[] = "stellarc";
#endif
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -84,7 +90,7 @@ const string StellaDb::databaseFileName() const
void StellaDb::initializeDb() const
{
FilesystemNode legacyConfigFile{myDatabaseDirectory};
legacyConfigFile /= "stellarc";
legacyConfigFile /= LEGACY_SETTINGS_FILE;
FilesystemNode legacyConfigDatabase{myDatabaseDirectory};
legacyConfigDatabase /= "settings.sqlite3";