Skip to content

Commit 35ecf8b

Browse files
committed
Dynamic Types fix
ContractConfigurator/Blizzy's toolbar wrapper fix.
1 parent e762f79 commit 35ecf8b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

AGExt/Button.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -828,9 +828,15 @@ internal ToolbarTypes()
828828

829829
internal static Type getType(string name)
830830
{
831-
return AssemblyLoader.loadedAssemblies
832-
.SelectMany(a => a.assembly.GetExportedTypes())
833-
.SingleOrDefault(t => t.FullName == name);
831+
Type type = null;
832+
AssemblyLoader.loadedAssemblies.TypeOperation(t =>
833+
{
834+
if (t.FullName == name)
835+
{
836+
type = t;
837+
}
838+
});
839+
return type;
834840
}
835841

836842
internal static PropertyInfo getProperty(Type type, string name)

AGExt/Instantly.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class AGXMainMenu :PartModule
1313
//abandoned module, no longer needed for key rebinding
1414
public void Start()
1515
{
16-
print("AGExt Ver. 2.1 loaded");
16+
print("AGExt Ver. 2.1a loaded");
1717

1818

1919
}

0 commit comments

Comments
 (0)