mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Expand out on to multiple lines
This commit is contained in:
@ -504,7 +504,12 @@ namespace osu.Game
|
|||||||
// schedule is here to ensure that all component loads are done after LoadComplete is run (and thus all dependencies are cached).
|
// schedule is here to ensure that all component loads are done after LoadComplete is run (and thus all dependencies are cached).
|
||||||
// with some better organisation of LoadComplete to do construction and dependency caching in one step, followed by calls to loadComponentSingleFile,
|
// with some better organisation of LoadComplete to do construction and dependency caching in one step, followed by calls to loadComponentSingleFile,
|
||||||
// we could avoid the need for scheduling altogether.
|
// we could avoid the need for scheduling altogether.
|
||||||
Schedule(() => { asyncLoadStream = asyncLoadStream?.ContinueWith(async t =>
|
Schedule(() =>
|
||||||
|
{
|
||||||
|
if (asyncLoadStream != null)
|
||||||
|
{
|
||||||
|
//chain with existing load stream
|
||||||
|
asyncLoadStream = asyncLoadStream.ContinueWith(async t =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -513,7 +518,11 @@ namespace osu.Game
|
|||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}) ?? LoadComponentAsync(d, add); });
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
asyncLoadStream = LoadComponentAsync(d, add);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool OnPressed(GlobalAction action)
|
public bool OnPressed(GlobalAction action)
|
||||||
|
Reference in New Issue
Block a user