mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-07 23:43:18 +02: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 New Issue
Block a user