mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-05-01 01:06:38 +00:00
Merge pull request #90 from knocte/embedded
gtk: fix Application to be more robust when embedding mono
This commit is contained in:
commit
d6f06860fb
|
@ -64,7 +64,9 @@ namespace Gtk {
|
|||
|
||||
static void SetPrgname ()
|
||||
{
|
||||
GLib.Global.ProgramName = System.IO.Path.GetFileNameWithoutExtension (Environment.GetCommandLineArgs () [0]);
|
||||
var args = Environment.GetCommandLineArgs ();
|
||||
if (args != null && args.Length > 0)
|
||||
GLib.Global.ProgramName = System.IO.Path.GetFileNameWithoutExtension (args [0]);
|
||||
}
|
||||
|
||||
public static void Init ()
|
||||
|
|
Loading…
Reference in a new issue