mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +08:00
Allow seeking via Player.Seek
even if disabled
This commit is contained in:
parent
838bcc51b2
commit
ae8a1adae8
@ -582,13 +582,7 @@ namespace osu.Game.Screens.Play
|
|||||||
/// Seek to a specific time in gameplay.
|
/// Seek to a specific time in gameplay.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="time">The destination time to seek to.</param>
|
/// <param name="time">The destination time to seek to.</param>
|
||||||
public void Seek(double time)
|
public void Seek(double time) => GameplayClockContainer.Seek(time);
|
||||||
{
|
|
||||||
if (!Configuration.AllowSeeking)
|
|
||||||
throw new InvalidOperationException($"Seeking has ben disabled by the current {nameof(Configuration)}.");
|
|
||||||
|
|
||||||
GameplayClockContainer.Seek(time);
|
|
||||||
}
|
|
||||||
|
|
||||||
private ScheduledDelegate frameStablePlaybackResetDelegate;
|
private ScheduledDelegate frameStablePlaybackResetDelegate;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user