Skip to content

Commit

Permalink
Dynamic Types fix
Browse files Browse the repository at this point in the history
ContractConfigurator/Blizzy's toolbar wrapper fix.
  • Loading branch information
SirDiazo committed Oct 23, 2016
1 parent e762f79 commit 35ecf8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions AGExt/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,15 @@ internal ToolbarTypes()

internal static Type getType(string name)
{
return AssemblyLoader.loadedAssemblies
.SelectMany(a => a.assembly.GetExportedTypes())
.SingleOrDefault(t => t.FullName == name);
Type type = null;
AssemblyLoader.loadedAssemblies.TypeOperation(t =>
{
if (t.FullName == name)
{
type = t;
}
});
return type;
}

internal static PropertyInfo getProperty(Type type, string name)
Expand Down
2 changes: 1 addition & 1 deletion AGExt/Instantly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class AGXMainMenu :PartModule
//abandoned module, no longer needed for key rebinding
public void Start()
{
print("AGExt Ver. 2.1 loaded");
print("AGExt Ver. 2.1a loaded");


}
Expand Down

0 comments on commit 35ecf8b

Please sign in to comment.