diff --git a/Ryujinx.HLE/HOS/Horizon.cs b/Ryujinx.HLE/HOS/Horizon.cs
index 79e9550696..aa01bfc97d 100644
--- a/Ryujinx.HLE/HOS/Horizon.cs
+++ b/Ryujinx.HLE/HOS/Horizon.cs
@@ -107,7 +107,7 @@ namespace Ryujinx.HLE.HOS
public string TitleName { get; private set; }
- public string TitleID { get; private set; }
+ public string TitleId { get; private set; }
public IntegrityCheckLevel FsIntegrityCheckLevel { get; set; }
@@ -499,7 +499,7 @@ namespace Ryujinx.HLE.HOS
Nacp controlData = new Nacp(controlFile.AsStream());
TitleName = controlData.Descriptions[(int)State.DesiredTitleLanguage].Title;
- TitleID = metaData.Aci0.TitleId.ToString("x16");
+ TitleId = metaData.Aci0.TitleId.ToString("x16");
if (string.IsNullOrWhiteSpace(TitleName))
{
@@ -515,7 +515,7 @@ namespace Ryujinx.HLE.HOS
}
else
{
- TitleID = metaData.Aci0.TitleId.ToString("x16");
+ TitleId = metaData.Aci0.TitleId.ToString("x16");
}
}
@@ -555,7 +555,7 @@ namespace Ryujinx.HLE.HOS
}
}
- TitleID = metaData.Aci0.TitleId.ToString("x16");
+ TitleId = metaData.Aci0.TitleId.ToString("x16");
LoadNso("rtld");
LoadNso("main");
@@ -658,7 +658,7 @@ namespace Ryujinx.HLE.HOS
ContentManager.LoadEntries();
TitleName = metaData.TitleName;
- TitleID = metaData.Aci0.TitleId.ToString("x16");
+ TitleId = metaData.Aci0.TitleId.ToString("x16");
ProgramLoader.LoadStaticObjects(this, metaData, new IExecutable[] { staticObject });
}
diff --git a/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs b/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs
index c1c6d26dc9..4962e3ffdc 100644
--- a/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs
+++ b/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs
@@ -33,7 +33,7 @@ namespace Ryujinx.HLE.HOS.Services.Arp
return new ApplicationLaunchProperty
{
- TitleId = BitConverter.ToInt64(StringUtils.HexToBytes(context.Device.System.TitleID), 0),
+ TitleId = BitConverter.ToInt64(StringUtils.HexToBytes(context.Device.System.TitleId), 0),
Version = 0x00,
BaseGameStorageId = (byte)StorageId.NandSystem,
UpdateGameStorageId = (byte)StorageId.None
diff --git a/Ryujinx.sln.DotSettings b/Ryujinx.sln.DotSettings
index 579d97a459..ed35825493 100644
--- a/Ryujinx.sln.DotSettings
+++ b/Ryujinx.sln.DotSettings
@@ -4,9 +4,15 @@
UseExplicitType
UseExplicitType
<Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="I" Suffix="" Style="AaBb" /></Policy>
+ True
True
True
+ True
+ True
+ True
+ True
True
+ True
True
True
True
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs
index 858c7e398c..8148758710 100644
--- a/Ryujinx/Program.cs
+++ b/Ryujinx/Program.cs
@@ -23,19 +23,20 @@ namespace Ryujinx
Application.Init();
+ string appDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "RyuFs", "system", "prod.keys");
+ string userProfilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".switch", "prod.keys");
+ if (!File.Exists(appDataPath) && !File.Exists(userProfilePath))
+ {
+ MainWindow.CreateErrorDialog($"Key file was not found. Please refer to `KEYS.md` for more info");
+ }
+
Application gtkApplication = new Application("Ryujinx.Ryujinx", GLib.ApplicationFlags.None);
- MainWindow mainWindow = new MainWindow(args, gtkApplication);
+ MainWindow mainWindow = new MainWindow(gtkApplication);
gtkApplication.Register(GLib.Cancellable.Current);
gtkApplication.AddWindow(mainWindow);
mainWindow.Show();
- if (!File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "RyuFs", "system", "prod.keys")))
- {
- Logger.PrintWarning(LogClass.Application, "Key file was not found");
- MainWindow.CreateErrorDialog($"Key file was not found. Please refer to `KEYS.md` for more info");
- }
-
if (args.Length == 1)
{
mainWindow.LoadApplication(args[0]);
@@ -51,7 +52,7 @@ namespace Ryujinx
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
- var exception = e.ExceptionObject as Exception;
+ Exception exception = e.ExceptionObject as Exception;
Logger.PrintError(LogClass.Emulation, $"Unhandled exception caught: {exception}");
diff --git a/Ryujinx/Ui/AboutWindow.cs b/Ryujinx/Ui/AboutWindow.cs
index 66d8b05849..8fd1c0b1dc 100644
--- a/Ryujinx/Ui/AboutWindow.cs
+++ b/Ryujinx/Ui/AboutWindow.cs
@@ -22,6 +22,7 @@ namespace Ryujinx.UI
private static Info Information { get; set; }
#pragma warning disable CS0649
+#pragma warning disable IDE0044
[GUI] Window _aboutWin;
[GUI] Label _versionText;
[GUI] Image _ryujinxLogo;
@@ -30,6 +31,7 @@ namespace Ryujinx.UI
[GUI] Image _discordLogo;
[GUI] Image _twitterLogo;
#pragma warning restore CS0649
+#pragma warning restore IDE0044
public AboutWindow() : this(new Builder("Ryujinx.Ui.AboutWindow.glade")) { }
@@ -103,7 +105,7 @@ namespace Ryujinx.UI
OpenUrl("https://twitter.com/RyujinxEmu");
}
- private void ContributersButton_Pressed(object sender, ButtonPressEventArgs args)
+ private void ContributorsButton_Pressed(object sender, ButtonPressEventArgs args)
{
OpenUrl("https://github.com/Ryujinx/Ryujinx/graphs/contributors?type=a");
}
diff --git a/Ryujinx/Ui/AboutWindow.glade b/Ryujinx/Ui/AboutWindow.glade
index 28a8007203..8a38bd9cc7 100644
--- a/Ryujinx/Ui/AboutWindow.glade
+++ b/Ryujinx/Ui/AboutWindow.glade
@@ -523,11 +523,11 @@ Andy A (BaronKiko)
-