mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 22:52:57 +08:00
27 lines
756 B
C#
27 lines
756 B
C#
// 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;
|
|
using osu.Framework.Platform;
|
|
|
|
namespace osu.Desktop.VisualTests
|
|
{
|
|
public static class Program
|
|
{
|
|
[STAThread]
|
|
public static void Main(string[] args)
|
|
{
|
|
bool benchmark = args.Length > 0 && args[0] == @"-benchmark";
|
|
|
|
using (GameHost host = Host.GetSuitableHost(@"osu"))
|
|
{
|
|
if (benchmark)
|
|
host.Run(new AutomatedVisualTestGame());
|
|
else
|
|
host.Run(new VisualTestGame());
|
|
}
|
|
}
|
|
}
|
|
}
|