mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Fix regression in FileBasedIPC implementation
This commit is contained in:
parent
b9f6372c3f
commit
5d77ae4a1e
@ -6,6 +6,7 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
|
using osu.Framework.Platform;
|
||||||
using osu.Framework.Platform.Windows;
|
using osu.Framework.Platform.Windows;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Beatmaps.Legacy;
|
using osu.Game.Beatmaps.Legacy;
|
||||||
@ -26,17 +27,17 @@ namespace osu.Game.Tournament.IPC
|
|||||||
private int lastBeatmapId;
|
private int lastBeatmapId;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LadderInfo ladder)
|
private void load(LadderInfo ladder, GameHost host)
|
||||||
{
|
{
|
||||||
StableStorage stable;
|
StableStorage stable;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stable = new StableStorage();
|
stable = new StableStorage(host as DesktopGameHost);
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Logger.Log("Stable installation could not be found; disabling file based IPC");
|
Logger.Error(e, "Stable installation could not be found; disabling file based IPC");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,8 +171,8 @@ namespace osu.Game.Tournament.IPC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public StableStorage()
|
public StableStorage(DesktopGameHost host)
|
||||||
: base(string.Empty, null)
|
: base(string.Empty, host)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user