mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
Aaargh. Forgot last mv
svn path=/trunk/gtk-sharp/; revision=20126
This commit is contained in:
parent
6506bcb5cc
commit
52d51cc863
@ -31,7 +31,10 @@
|
||||
static public Pixbuf LoadResource (System.Reflection.Assembly assembly, string resource)
|
||||
{
|
||||
if (assembly == null)
|
||||
return LoadResource (resource);
|
||||
return LoadResource (System.Reflection.Assembly.GetCallingAssembly (), resource);
|
||||
|
||||
if (resource == null)
|
||||
throw new ArgumentNullException ("resource");
|
||||
|
||||
System.IO.Stream s = assembly.GetManifestResourceStream (resource);
|
||||
if (s == null)
|
||||
@ -42,6 +45,9 @@
|
||||
|
||||
static public Pixbuf LoadResource (string resource)
|
||||
{
|
||||
if (resource == null)
|
||||
throw new ArgumentNullException ("resource");
|
||||
|
||||
return LoadResource (System.Reflection.Assembly.GetCallingAssembly (), resource);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user