Add support for --sdl command line arg

This commit is contained in:
Shane Woolcock
2019-11-28 17:09:54 +10:30
parent 8432e634dc
commit 54a8c00bb8
2 changed files with 22 additions and 1 deletions

View File

@ -22,8 +22,9 @@ namespace osu.Desktop
{
// Back up the cwd before DesktopGameHost changes it
var cwd = Environment.CurrentDirectory;
bool useSdl = args.Contains("--sdl");
using (DesktopGameHost host = Host.GetSuitableHost(@"osu", true))
using (DesktopGameHost host = Host.GetSuitableHost(@"osu", true, useSdl: useSdl))
{
host.ExceptionThrown += handleException;