﻿// 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 osu.Framework.Platform;
using osu.Framework;

namespace SampleGame.Desktop
{
    public static class Program
    {
        [STAThread]
        public static void Main()
        {
            using (GameHost host = Host.GetSuitableHost(@"sample-game"))
            using (Game game = new SampleGameGame())
                host.Run(game);
        }
    }
}

﻿// 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;
using osu.Framework.Platform;

namespace SampleGame.Desktop
{
    public static class Program
    {
        [STAThread]
        public static void Main(string[] args)
        {
            bool useSdl = args.Contains(@"--sdl");

            using (GameHost host = Host.GetSuitableHost(@"sample-game", useSdl: useSdl))
            using (Game game = new SampleGameGame())
                host.Run(game);
        }
    }
}

Add SDL support to SampleGame
Add SDL support to SampleGame
