mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-12 05:05:26 +02:00
misc: chore: Fix object creation in Avalonia project
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||
|
||||
int cheatAdded = 0;
|
||||
|
||||
ModLoader.ModCache mods = new ModLoader.ModCache();
|
||||
ModLoader.ModCache mods = new();
|
||||
|
||||
ModLoader.QueryContentsDir(mods, new DirectoryInfo(Path.Combine(modsBasePath, "contents")), titleIdValue);
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||
LoadedCheats.Add(currentGroup);
|
||||
}
|
||||
|
||||
CheatNode model = new CheatNode(cheat.Name, buildId, string.Empty, false, enabled.Contains($"{buildId}-{cheat.Name}"));
|
||||
CheatNode model = new(cheat.Name, buildId, string.Empty, false, enabled.Contains($"{buildId}-{cheat.Name}"));
|
||||
currentGroup?.SubNodes.Add(model);
|
||||
|
||||
cheatAdded++;
|
||||
|
Reference in New Issue
Block a user