fix: avoid re-registering InstanceType
This commit is contained in:
parent
2bd8e7dca4
commit
8a0aa5a0c8
@ -59,6 +59,10 @@ BaseInstance::BaseInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr s
|
|||||||
m_settings->registerSetting("lastLaunchTime", 0);
|
m_settings->registerSetting("lastLaunchTime", 0);
|
||||||
m_settings->registerSetting("totalTimePlayed", 0);
|
m_settings->registerSetting("totalTimePlayed", 0);
|
||||||
m_settings->registerSetting("lastTimePlayed", 0);
|
m_settings->registerSetting("lastTimePlayed", 0);
|
||||||
|
|
||||||
|
// NOTE: Sometimees InstanceType is already registered, as it was used to identify the type of
|
||||||
|
// a locally stored instance
|
||||||
|
if (!m_settings->getSetting("InstanceType"))
|
||||||
m_settings->registerSetting("InstanceType", "");
|
m_settings->registerSetting("InstanceType", "");
|
||||||
|
|
||||||
// Custom Commands
|
// Custom Commands
|
||||||
|
Loading…
Reference in New Issue
Block a user