mirror of
https://github.com/ppy/osu.git
synced 2025-03-24 19:17:20 +08:00
Merge branch 'master' into tournament-hide-mp-commands
This commit is contained in:
commit
b99b3a5bfd
@ -69,7 +69,7 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
|
||||
protected override ResumeOverlay CreateResumeOverlay()
|
||||
{
|
||||
if (Mods.Any(m => m is OsuModAutopilot))
|
||||
if (Mods.Any(m => m is OsuModAutopilot or OsuModTouchDevice))
|
||||
return new DelayedResumeOverlay { Scale = new Vector2(0.65f) };
|
||||
|
||||
return new OsuResumeOverlay();
|
||||
|
@ -62,8 +62,12 @@ namespace osu.Game.IO.Serialization.Converters
|
||||
if (tok["$type"] == null)
|
||||
throw new JsonException("Expected $type token.");
|
||||
|
||||
string typeName = lookupTable[(int)tok["$type"]];
|
||||
var instance = (T)Activator.CreateInstance(Type.GetType(typeName).AsNonNull())!;
|
||||
// Prevent instantiation of types that do not inherit the type targetted by this converter
|
||||
Type type = Type.GetType(lookupTable[(int)tok["$type"]]).AsNonNull();
|
||||
if (!type.IsAssignableTo(typeof(T)))
|
||||
continue;
|
||||
|
||||
var instance = (T)Activator.CreateInstance(type)!;
|
||||
serializer.Populate(itemReader, instance);
|
||||
|
||||
list.Add(instance);
|
||||
|
@ -36,7 +36,7 @@
|
||||
</PackageReference>
|
||||
<PackageReference Include="Realm" Version="11.5.0" />
|
||||
<PackageReference Include="ppy.osu.Framework" Version="2024.1206.0" />
|
||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2024.1202.0" />
|
||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2024.1219.0" />
|
||||
<PackageReference Include="Sentry" Version="4.13.0" />
|
||||
<!-- Held back due to 0.34.0 failing AOT compilation on ZstdSharp.dll dependency. -->
|
||||
<PackageReference Include="SharpCompress" Version="0.38.0" />
|
||||
|
@ -34,9 +34,11 @@
|
||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||
<true/>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>We don't really use the camera.</string>
|
||||
<string>We don't use the camera.</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>We don't really use the microphone.</string>
|
||||
<string>We don't use the microphone.</string>
|
||||
<key>NSBluetoothAlwaysUsageDescription</key>
|
||||
<string>We don't use Bluetooth.</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
@ -153,5 +155,7 @@
|
||||
</array>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.music-games</string>
|
||||
<key>LSSupportsOpeningDocumentsInPlace</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
Loading…
x
Reference in New Issue
Block a user