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-12-19 14:43:12 +08:00
|
|
|
|
using System.Reflection;
|
2019-01-06 13:18:12 +08:00
|
|
|
|
using Android.App;
|
2022-12-19 14:43:12 +08:00
|
|
|
|
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();
|
2022-12-19 14:43:12 +08:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|