mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Move scheduled import logic to OsuGame.
This commit is contained in:
@ -67,12 +67,6 @@ namespace osu.Android
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task Import(Stream stream, string filename)
|
|
||||||
{
|
|
||||||
WaitForReady(() => this, _ => Task.Run(() => base.Import(stream, filename)));
|
|
||||||
return Task.CompletedTask;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
@ -52,6 +52,7 @@ using osu.Game.Updater;
|
|||||||
using osu.Game.Utils;
|
using osu.Game.Utils;
|
||||||
using LogLevel = osu.Framework.Logging.LogLevel;
|
using LogLevel = osu.Framework.Logging.LogLevel;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
namespace osu.Game
|
namespace osu.Game
|
||||||
{
|
{
|
||||||
@ -426,6 +427,12 @@ namespace osu.Game
|
|||||||
}, validScreens: new[] { typeof(PlaySongSelect) });
|
}, validScreens: new[] { typeof(PlaySongSelect) });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override Task Import(Stream stream, string filename)
|
||||||
|
{
|
||||||
|
WaitForReady(() => this, _ => Task.Run(() => base.Import(stream, filename)));
|
||||||
|
return Task.CompletedTask;
|
||||||
|
}
|
||||||
|
|
||||||
protected virtual Loader CreateLoader() => new Loader();
|
protected virtual Loader CreateLoader() => new Loader();
|
||||||
|
|
||||||
protected virtual UpdateManager CreateUpdateManager() => new UpdateManager();
|
protected virtual UpdateManager CreateUpdateManager() => new UpdateManager();
|
||||||
|
Reference in New Issue
Block a user