mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-02-02 19:01:05 +00:00
2008-09-12 Zoltan Varga <vargaz@gmail.com>
* glib/GType.cs (FindTypeInReferences): Put a try-catch around the assembly loading as failure to load a referenced assembly is not really an error. svn path=/trunk/gtk-sharp/; revision=112905
This commit is contained in:
parent
cbf6068edf
commit
fc871aacca
|
@ -1,3 +1,8 @@
|
|||
2008-09-12 Zoltan Varga <vargaz@gmail.com>
|
||||
|
||||
* glib/GType.cs (FindTypeInReferences): Put a try-catch around the assembly
|
||||
loading as failure to load a referenced assembly is not really an error.
|
||||
|
||||
2008-09-12 Mike Gorse <mgorse@novell.com>
|
||||
|
||||
* atk/Object.custom, atk/glue/object.c: Support GetIndexInParent.
|
||||
|
|
|
@ -166,6 +166,7 @@ namespace GLib {
|
|||
string asm_dir = Path.GetDirectoryName (asm.Location);
|
||||
foreach (AssemblyName ref_name in asm.GetReferencedAssemblies ()) {
|
||||
Assembly ref_asm;
|
||||
try {
|
||||
if (File.Exists (Path.Combine (asm_dir, ref_name.Name + ".dll")))
|
||||
ref_asm = Assembly.LoadFrom (Path.Combine (asm_dir, ref_name.Name + ".dll"));
|
||||
else
|
||||
|
@ -173,6 +174,9 @@ namespace GLib {
|
|||
result = FindTypeInReferences (type_name, ref_asm, visited);
|
||||
if (result != null)
|
||||
break;
|
||||
} catch (Exception) {
|
||||
/* Failure to load a referenced assembly is not an error */
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue