mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Log global working beatmap updates in OsuGameBase
instead of OsuGame
This commit is contained in:
parent
b70b365411
commit
10d1bbb131
@ -612,7 +612,6 @@ namespace osu.Game
|
||||
{
|
||||
beatmap.OldValue?.CancelAsyncLoad();
|
||||
beatmap.NewValue?.BeginAsyncLoad();
|
||||
Logger.Log($"Game-wide working beatmap updated to {beatmap.NewValue}");
|
||||
}
|
||||
|
||||
private void modsChanged(ValueChangedEvent<IReadOnlyList<Mod>> mods)
|
||||
|
@ -490,10 +490,12 @@ namespace osu.Game
|
||||
}
|
||||
}
|
||||
|
||||
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> valueChangedEvent)
|
||||
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> beatmap)
|
||||
{
|
||||
if (IsLoaded && !ThreadSafety.IsUpdateThread)
|
||||
throw new InvalidOperationException("Global beatmap bindable must be changed from update thread.");
|
||||
|
||||
Logger.Log($"Game-wide working beatmap updated to {beatmap.NewValue}");
|
||||
}
|
||||
|
||||
private void onRulesetChanged(ValueChangedEvent<RulesetInfo> r)
|
||||
|
Loading…
Reference in New Issue
Block a user