From 415cae87dd38c1a64642078c5a125fb2e042bc2b Mon Sep 17 00:00:00 2001 From: Kaius Loos Date: Tue, 30 Apr 2024 13:55:49 +0300 Subject: [PATCH] fix: missing properties on fresh install Values is needed before we add a new default leaderboard. --- src/plugin/LeaderboardPlugin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin/LeaderboardPlugin.cs b/src/plugin/LeaderboardPlugin.cs index 2d278adb..08ae17fd 100644 --- a/src/plugin/LeaderboardPlugin.cs +++ b/src/plugin/LeaderboardPlugin.cs @@ -150,11 +150,11 @@ public void Init(PluginManager pluginManager) { LogInfo("Starting plugin"); GameDataPath = $@"{Settings.PluginDataLocation}\{gameName}"; + // _values is needed by SettingsControl on first time initialization, even if the game is not ACC + this._values = new Values(); if (Settings.DynLeaderboardConfigs.Count == 0) { this.AddNewLeaderboard(new DynLeaderboardConfig("Dynamic")); } - // _values is needed by SettingsControl on first time initialization, even if the game is not ACC - this._values = new Values(); if (!Game.IsAcc) { return; }