mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-20 12:15:46 +00:00
Fix things broken by trimming (profile panel, DiscordRPC)
This commit is contained in:
@@ -163,4 +163,7 @@
|
||||
<ItemGroup>
|
||||
<AdditionalFiles Include="..\..\assets\Locales\*.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TrimmerRootDescriptor Include="TrimmerRootDescriptor.xml" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
3
src/Ryujinx/TrimmerRootDescriptor.xml
Normal file
3
src/Ryujinx/TrimmerRootDescriptor.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<linker>
|
||||
<assembly fullname="DiscordRPC" preserve="all" />
|
||||
</linker>
|
||||
@@ -16,6 +16,7 @@ using Ryujinx.HLE.FileSystem;
|
||||
using Ryujinx.HLE.HOS.Services.Account.Acc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using UserId = Ryujinx.HLE.HOS.Services.Account.Acc.UserId;
|
||||
@@ -59,7 +60,7 @@ namespace Ryujinx.Ava.UI.Controls
|
||||
LoadProfiles();
|
||||
}
|
||||
|
||||
public void Navigate(Type sourcePageType, object parameter)
|
||||
public void Navigate([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] Type sourcePageType, object parameter)
|
||||
=> ContentFrame.Navigate(sourcePageType, parameter);
|
||||
|
||||
public static async Task Show(
|
||||
|
||||
@@ -1350,8 +1350,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
|
||||
public void SetGridMode() => Glyph = Glyph.Grid;
|
||||
|
||||
public void SetAspectRatio(AspectRatio aspectRatio) =>
|
||||
ConfigurationState.Instance.Graphics.AspectRatio.Value = aspectRatio;
|
||||
public void SetAspectRatio(object aspectRatio) =>
|
||||
ConfigurationState.Instance.Graphics.AspectRatio.Value = (AspectRatio)aspectRatio;
|
||||
|
||||
public async Task InstallFirmwareFromFile()
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Humanizer;
|
||||
using Humanizer.Localisation;
|
||||
using Ryujinx.Ava.Common.Locale;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
Reference in New Issue
Block a user