* Fix for games which do not load InputModule on startup. CppExplorer will now try to load the module itself.
* Cleanups
This commit is contained in:
sinaioutlander
2020-09-08 17:07:10 +10:00
parent 4bb0811b2c
commit 38aafa7e5b
9 changed files with 192 additions and 125 deletions

View File

@ -385,8 +385,8 @@ namespace Explorer
public static IEnumerable<object> GetInstanceClassScanner()
{
var query = AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(ReflectionHelpers.GetTypesSafe)
.Where(t => t.IsClass && !t.IsAbstract && !t.ContainsGenericParameters);
.SelectMany(t => t.TryGetTypes())
.Where(t => t.IsClass && !t.IsAbstract && !t.ContainsGenericParameters);
var flags = BindingFlags.Public | BindingFlags.Static;
var flatFlags = flags | BindingFlags.FlattenHierarchy;