mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
ui: Fix segfault on Linux when passing a program via command line (#764)
This commit is contained in:
parent
7ff394e68a
commit
9afb8ad485
|
@ -30,6 +30,11 @@ namespace Ryujinx
|
|||
gtkApplication.AddWindow(mainWindow);
|
||||
mainWindow.Show();
|
||||
|
||||
if (args.Length == 1)
|
||||
{
|
||||
mainWindow.LoadApplication(args[0]);
|
||||
}
|
||||
|
||||
Application.Run();
|
||||
}
|
||||
|
||||
|
|
|
@ -131,8 +131,6 @@ namespace Ryujinx.UI
|
|||
|
||||
UpdateGameTable();
|
||||
// Temporary code section end
|
||||
|
||||
LoadApplication(args[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -202,7 +200,7 @@ namespace Ryujinx.UI
|
|||
StyleContext.AddProviderForScreen(Gdk.Screen.Default, cssProvider, 800);
|
||||
}
|
||||
|
||||
private void LoadApplication(string path)
|
||||
internal void LoadApplication(string path)
|
||||
{
|
||||
if (_gameLoaded)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue