Read from (and allow reloading) IPC source

This commit is contained in:
Dean Herbert
2019-09-22 04:15:02 +09:00
parent 3b52e7c724
commit 47a89231ad
2 changed files with 117 additions and 84 deletions

View File

@ -1,9 +1,24 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics.Sprites;
using osu.Game.Tournament.IPC;
namespace osu.Game.Tournament.Screens
{
public class SetupScreen : TournamentScreen
{
[Resolved]
private MatchIPCInfo ipc { get; set; }
[BackgroundDependencyLoader]
private void load()
{
AddInternal(new SpriteText
{
Text = (ipc as FileBasedIPC)?.Storage.GetFullPath(string.Empty)
});
}
}
}