1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Fix incorrect configuration retrievals.

This commit is contained in:
Dean Herbert 2017-01-26 22:15:49 +09:00
parent 1853bbdda8
commit 25da8a53dc
2 changed files with 5 additions and 6 deletions

View File

@ -325,7 +325,6 @@ namespace osu.Game.Configuration
SaveUsername, SaveUsername,
TreeSortMode, TreeSortMode,
TreeSortMode2, TreeSortMode2,
FrameSync,
ShowUnicode, ShowUnicode,
PermanentSongInfo, PermanentSongInfo,
Ticker, Ticker,

View File

@ -16,7 +16,7 @@ namespace osu.Game.Overlays.Options.Graphics
protected override string Header => "Renderer"; protected override string Header => "Renderer";
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuConfigManager config) private void load(OsuConfigManager osuConfig, FrameworkConfigManager config)
{ {
// NOTE: Compatability mode omitted // NOTE: Compatability mode omitted
Children = new Drawable[] Children = new Drawable[]
@ -25,22 +25,22 @@ namespace osu.Game.Overlays.Options.Graphics
new DropdownOption<FrameSync> new DropdownOption<FrameSync>
{ {
LabelText = "Frame limiter", LabelText = "Frame limiter",
Bindable = config.GetBindable<FrameSync>(OsuConfig.FrameSync) Bindable = config.GetBindable<FrameSync>(FrameworkConfig.FrameSync)
}, },
new CheckBoxOption new CheckBoxOption
{ {
LabelText = "Show FPS counter", LabelText = "Show FPS counter",
Bindable = config.GetBindable<bool>(OsuConfig.FpsCounter), Bindable = osuConfig.GetBindable<bool>(OsuConfig.FpsCounter),
}, },
new CheckBoxOption new CheckBoxOption
{ {
LabelText = "Reduce dropped frames", LabelText = "Reduce dropped frames",
Bindable = config.GetBindable<bool>(OsuConfig.ForceFrameFlush), Bindable = osuConfig.GetBindable<bool>(OsuConfig.ForceFrameFlush),
}, },
new CheckBoxOption new CheckBoxOption
{ {
LabelText = "Detect performance issues", LabelText = "Detect performance issues",
Bindable = config.GetBindable<bool>(OsuConfig.DetectPerformanceIssues), Bindable = osuConfig.GetBindable<bool>(OsuConfig.DetectPerformanceIssues),
}, },
}; };
} }