1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 13:47:38 +08:00
osu-lazer/osu.Desktop.VisualTests/Program.cs

28 lines
790 B
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Framework.Desktop;
2016-10-07 11:49:53 +08:00
using osu.Framework.Platform;
using osu.Framework.VisualTests;
namespace osu.Desktop.VisualTests
{
public static class Program
{
[STAThread]
public static void Main(string[] args)
{
2017-02-09 18:24:53 +08:00
bool benchmark = args.Length > 0 && args[0] == @"-benchmark";
2017-02-23 14:38:17 +08:00
using (GameHost host = Host.GetSuitableHost(@"osu"))
{
2017-02-09 18:24:53 +08:00
if (benchmark)
2017-03-31 16:55:07 +08:00
host.Run(new AutomatedVisualTestGame());
2017-02-09 18:24:53 +08:00
else
host.Run(new VisualTestGame());
}
}
}
}