mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
28 lines
828 B
C#
28 lines
828 B
C#
// 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 System;
|
|
using System.Linq;
|
|
using osu.Framework.Platform;
|
|
|
|
namespace osu.Framework.Tests
|
|
{
|
|
public static class Program
|
|
{
|
|
[STAThread]
|
|
public static void Main(string[] args)
|
|
{
|
|
bool benchmark = args.Contains(@"--benchmark");
|
|
bool portable = args.Contains(@"--portable");
|
|
|
|
using (GameHost host = Host.GetSuitableDesktopHost(@"visual-tests", new HostOptions { PortableInstallation = portable }))
|
|
{
|
|
if (benchmark)
|
|
host.Run(new AutomatedVisualTestGame());
|
|
else
|
|
host.Run(new VisualTestGame());
|
|
}
|
|
}
|
|
}
|
|
}
|