Key file existence check
This commit is contained in:
parent
a6779ab7d8
commit
1e84e0aa73
3 changed files with 11 additions and 2 deletions
|
@ -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]);
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue