Key file existence check

This commit is contained in:
Xpl0itR 2019-09-08 17:39:05 +01:00 committed by unknown
parent a6779ab7d8
commit 1e84e0aa73
No known key found for this signature in database
GPG key ID: 91798184109676AD
3 changed files with 11 additions and 2 deletions

View file

@ -30,6 +30,15 @@ namespace Ryujinx
gtkApplication.AddWindow(mainWindow);
mainWindow.Show();
string ryuFsProd = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "RyuFS", "system", "prod.keys");
string homeProd = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".switch", "prod.keys");
if (!File.Exists(ryuFsProd) && !File.Exists(homeProd))
{
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]);

View file

@ -37,7 +37,7 @@
<None Remove="Ui\assets\GitHubLogo.png" />
<None Remove="Ui\assets\JoyCon.png" />
<None Remove="Ui\assets\PatreonLogo.png" />
<None Remove="Ui\assets\RyujinxIcon.png" />
<None Remove="Ui\assets\ryujinxIcon.png" />
<None Remove="Ui\assets\TwitterLogo.png" />
<None Remove="Ui\MainWindow.glade" />
<None Remove="Ui\SwitchSettings.glade" />

View file

@ -90,7 +90,7 @@ namespace Ryujinx.UI
builder.Autoconnect(this);
_settingsWin.Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.RyujinxIcon.png");
_settingsWin.Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.ryujinxIcon.png");
_controller1Image.Pixbuf = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.JoyCon.png", 500, 500);
//Bind Events