1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 00:13:19 +08:00

Replace KeybindingStore with realm version

This commit is contained in:
Dean Herbert 2021-01-07 15:51:38 +09:00
parent 382a40b243
commit a9a3a95991

View File

@ -73,7 +73,7 @@ namespace osu.Game
protected FileStore FileStore;
protected KeyBindingStore KeyBindingStore;
protected RealmKeyBindingStore KeyBindingStore;
protected SettingsStore SettingsStore;
@ -265,8 +265,10 @@ namespace osu.Game
dependencies.Cache(scorePerformanceManager);
AddInternal(scorePerformanceManager);
dependencies.Cache(KeyBindingStore = new KeyBindingStore(contextFactory, RulesetStore));
dependencies.Cache(new RealmKeyBindingStore(realmFactory, RulesetStore));
// todo: migrate to realm
// dependencies.Cache(KeyBindingStore = new KeyBindingStore(contextFactory, RulesetStore));
dependencies.Cache(KeyBindingStore = new RealmKeyBindingStore(realmFactory, RulesetStore));
dependencies.Cache(SettingsStore = new SettingsStore(contextFactory));
dependencies.Cache(RulesetConfigCache = new RulesetConfigCache(SettingsStore));
dependencies.Cache(new SessionStatics());