mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-10 06:56:27 +02:00
misc: chore: Cleanup AppletMetadata usage
This commit is contained in:
parent
09446fd80e
commit
bbd64fd5f0
3 changed files with 10 additions and 7 deletions
|
@ -144,14 +144,14 @@ namespace Ryujinx.Ava.UI.Views.Main
|
|||
ViewModel.LoadConfigurableHotKeys();
|
||||
}
|
||||
|
||||
public static readonly AppletMetadata MiiApplet = new("miiEdit", 0x0100000000001009);
|
||||
|
||||
public AppletMetadata MiiApplet => new(ViewModel.ContentManager, "miiEdit", 0x0100000000001009);
|
||||
|
||||
public async Task OpenMiiApplet()
|
||||
{
|
||||
if (MiiApplet.CanStart(ViewModel.ContentManager, out var appData, out var nacpData))
|
||||
{
|
||||
await ViewModel.LoadApplication(appData, ViewModel.IsFullScreen || ViewModel.StartGamesInFullscreen, nacpData);
|
||||
}
|
||||
if (!MiiApplet.CanStart(out var appData, out var nacpData))
|
||||
return;
|
||||
|
||||
await ViewModel.LoadApplication(appData, ViewModel.IsFullScreen || ViewModel.StartGamesInFullscreen, nacpData);
|
||||
}
|
||||
|
||||
public async Task OpenCheatManagerForCurrentApp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue