Skip to content

Commit

Permalink
Little bit code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamWsyHK committed Dec 6, 2024
1 parent 4cb4af4 commit fd4c40f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,19 @@ public async void OpenSettings(object sender, RoutedEventArgs e)

public async void OpenMiiApplet(object sender, RoutedEventArgs e)
{
string contentPath = ViewModel.ContentManager.GetInstalledContentPath(0x0100000000001009, StorageId.BuiltInSystem, NcaContentType.Program);
const string name = "miiEdit";
const ulong programId = 0x0100000000001009;
string contentPath = ViewModel.ContentManager.GetInstalledContentPath(programId, StorageId.BuiltInSystem, NcaContentType.Program);

if (!string.IsNullOrEmpty(contentPath))
{
ApplicationData applicationData = new()
{
Name = "miiEdit",
Id = 0x0100000000001009,
Name = name,
Id = programId,
Path = contentPath,
};

string name = "miiEdit";
string version = "1.0.0";
var nacpData = new BlitStruct<ApplicationControlProperty>(1);

Expand Down

0 comments on commit fd4c40f

Please sign in to comment.