Skip to content

Commit

Permalink
Merge branch 'release/0.7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
dbent committed Oct 21, 2016
2 parents b5beb2d + 8c34cfd commit 710d6b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.7.2
##### Fixed
- [#75](https://github.com/Apokee/HotSpot/issues/75) — Fixed `ToolbarWrapper` compatibility with Contract Configurator.

## v0.7.1
##### Changed
- Compatability with KSP 1.2.
Expand Down
11 changes: 8 additions & 3 deletions src/HotSpot/Compat/Toolbar/ToolbarWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -826,9 +826,14 @@ 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

0 comments on commit 710d6b0

Please sign in to comment.