Skip to content

Commit

Permalink
Merge pull request #1712 from Trial97/current_time
Browse files Browse the repository at this point in the history
  • Loading branch information
timoreo22 committed Dec 11, 2023
2 parents a39e2a1 + e503d44 commit 4612607
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions launcher/BaseInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ BaseInstance::BaseInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr s

m_settings->registerSetting("lastLaunchTime", 0);
m_settings->registerSetting("totalTimePlayed", 0);
if (m_settings->get("totalTimePlayed").toLongLong() < 0)
m_settings->reset("totalTimePlayed");
m_settings->registerSetting("lastTimePlayed", 0);

m_settings->registerSetting("linkedInstances", "[]");
Expand Down

0 comments on commit 4612607

Please sign in to comment.