mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 01:02:56 +08:00
Fix incorrect configuration retrievals.
This commit is contained in:
parent
1853bbdda8
commit
25da8a53dc
@ -325,7 +325,6 @@ namespace osu.Game.Configuration
|
|||||||
SaveUsername,
|
SaveUsername,
|
||||||
TreeSortMode,
|
TreeSortMode,
|
||||||
TreeSortMode2,
|
TreeSortMode2,
|
||||||
FrameSync,
|
|
||||||
ShowUnicode,
|
ShowUnicode,
|
||||||
PermanentSongInfo,
|
PermanentSongInfo,
|
||||||
Ticker,
|
Ticker,
|
||||||
|
@ -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),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user