1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-21 07:53:38 +08:00
osu-lazer/osu.Game.Tests.Android/MainActivity.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
980 B
C#
Raw Normal View History

2019-01-31 08:07:32 +08:00
// 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.
2019-01-06 13:18:12 +08:00
2022-06-17 15:37:17 +08:00
#nullable disable
using System.Reflection;
2019-01-06 13:18:12 +08:00
using Android.App;
using Android.OS;
2019-01-06 13:18:12 +08:00
using osu.Framework.Android;
namespace osu.Game.Tests.Android
{
2021-12-25 01:57:08 +08:00
[Activity(ConfigurationChanges = DEFAULT_CONFIG_CHANGES, Exported = true, LaunchMode = DEFAULT_LAUNCH_MODE, MainLauncher = true)]
2019-01-06 13:18:12 +08:00
public class MainActivity : AndroidGameActivity
{
2019-06-10 10:15:05 +08:00
protected override Framework.Game CreateGame() => new OsuTestBrowser();
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
// See the comment in OsuGameActivity
Assembly.Load("osu.Game.Rulesets.Osu");
Assembly.Load("osu.Game.Rulesets.Taiko");
Assembly.Load("osu.Game.Rulesets.Catch");
Assembly.Load("osu.Game.Rulesets.Mania");
}
2019-01-06 13:18:12 +08:00
}
}