1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-31 04:45:24 +08:00
osu-lazer/osu.Game/Tests/CleanRunHeadlessGameHost.cs

25 lines
754 B
C#
Raw Normal View History

// 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.
2018-04-13 17:19:50 +08:00
using osu.Framework.Platform;
namespace osu.Game.Tests
{
/// <summary>
/// A headless host which cleans up before running (removing any remnants from a previous execution).
/// </summary>
public class CleanRunHeadlessGameHost : HeadlessGameHost
{
public CleanRunHeadlessGameHost(string gameName = @"", bool bindIPC = false, bool realtime = true)
: base(gameName, bindIPC, realtime)
{
2019-03-28 00:29:06 +08:00
}
protected override void SetupForRun()
{
base.SetupForRun();
2018-04-13 17:19:50 +08:00
Storage.DeleteDirectory(string.Empty);
}
}
}