2017-02-07 04:59:30 +00:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-09-23 15:39:20 +00:00
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using osu.Framework.Desktop;
|
2016-10-07 03:49:53 +00:00
|
|
|
|
using osu.Framework.Platform;
|
2016-11-16 06:49:59 +00:00
|
|
|
|
using osu.Game.Modes;
|
|
|
|
|
using osu.Game.Modes.Catch;
|
|
|
|
|
using osu.Game.Modes.Mania;
|
|
|
|
|
using osu.Game.Modes.Osu;
|
|
|
|
|
using osu.Game.Modes.Taiko;
|
2016-09-23 15:39:20 +00:00
|
|
|
|
|
2016-10-26 08:26:26 +00:00
|
|
|
|
namespace osu.Desktop.VisualTests
|
2016-09-23 15:39:20 +00:00
|
|
|
|
{
|
|
|
|
|
public static class Program
|
|
|
|
|
{
|
|
|
|
|
[STAThread]
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2017-02-09 10:24:53 +00:00
|
|
|
|
bool benchmark = args.Length > 0 && args[0] == @"-benchmark";
|
|
|
|
|
|
2017-02-23 06:38:17 +00:00
|
|
|
|
using (GameHost host = Host.GetSuitableHost(@"osu"))
|
2016-11-08 00:04:31 +00:00
|
|
|
|
{
|
2016-11-16 06:49:59 +00:00
|
|
|
|
Ruleset.Register(new OsuRuleset());
|
|
|
|
|
Ruleset.Register(new TaikoRuleset());
|
|
|
|
|
Ruleset.Register(new ManiaRuleset());
|
|
|
|
|
Ruleset.Register(new CatchRuleset());
|
|
|
|
|
|
2017-02-09 10:24:53 +00:00
|
|
|
|
if (benchmark)
|
2017-02-26 11:45:41 +00:00
|
|
|
|
host.Run(new Benchmark());
|
2017-02-09 10:24:53 +00:00
|
|
|
|
else
|
2017-02-26 11:45:41 +00:00
|
|
|
|
host.Run(new VisualTestGame());
|
2016-11-08 00:04:31 +00:00
|
|
|
|
}
|
2016-09-23 15:39:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|