C++: Fix assembly resource location bug

This commit is contained in:
Katy Coe
2020-06-27 21:48:27 +02:00
parent 8a85acb242
commit 9ee8065d57

View File

@@ -64,7 +64,7 @@ namespace Il2CppInspector.Cpp.UnityHeaders
// List all header files embedded into this build of Il2Cpp
public static IEnumerable<UnityHeader> GetAllHeaders() {
string prefix = typeof(UnityHeader).Namespace + ".";
Assembly assembly = Assembly.GetCallingAssembly();
Assembly assembly = Assembly.GetExecutingAssembly();
return assembly.GetManifestResourceNames()
.Where(s => s.StartsWith(prefix) && s.EndsWith(".h"))
.Select(s => new UnityHeader(s.Substring(prefix.Length)));