core: set config defaults before anything else

Ensures media cache folder isn't created in `~/.local/share` root and its
own folder instead.
This commit is contained in:
itsmattkc
2020-06-12 17:22:05 +10:00
parent af5097bf5f
commit 0fd8613bca
+4 -4
View File
@@ -82,6 +82,10 @@ Core *Core::instance()
bool Core::Start()
{
// Reset config (Config sets to default on construction already, but we do it again here as a workaround that fixes
// the fact that some of the config paths set by default rely on the app name having been set (in main())
Config::Current().SetDefaults();
//
// Parse command line arguments
//
@@ -127,10 +131,6 @@ bool Core::Start()
// Initialize task manager
TaskManager::CreateInstance();
// Reset config (Config sets to default on construction already, but we do it again here as a workaround that fixes
// the fact that some of the config paths set by default rely on the app name having been set (in main())
Config::Current().SetDefaults();
// Load application config
Config::Load();