Make settings works with current caching structure

Will likely pull out that `RulesetConfigCache` next, but this is an
"everything works" state.
This commit is contained in:
Dean Herbert
2021-09-15 14:39:47 +09:00
parent 14314476f0
commit a2f1752344
12 changed files with 101 additions and 121 deletions

View File

@ -140,8 +140,6 @@ namespace osu.Game
private FileStore fileStore;
private RealmSettingsStore settingsStore;
private RulesetConfigCache rulesetConfigCache;
private SpectatorClient spectatorClient;
@ -279,8 +277,7 @@ namespace osu.Game
migrateDataToRealm();
dependencies.Cache(settingsStore = new RealmSettingsStore(realmFactory));
dependencies.Cache(rulesetConfigCache = new RulesetConfigCache(settingsStore));
dependencies.Cache(rulesetConfigCache = new RulesetConfigCache(realmFactory, RulesetStore));
var powerStatus = CreateBatteryInfo();
if (powerStatus != null)