C++: Fix assembly resource location bug
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Il2CppInspector.Cpp.UnityHeaders
|
|||||||
// List all header files embedded into this build of Il2Cpp
|
// List all header files embedded into this build of Il2Cpp
|
||||||
public static IEnumerable<UnityHeader> GetAllHeaders() {
|
public static IEnumerable<UnityHeader> GetAllHeaders() {
|
||||||
string prefix = typeof(UnityHeader).Namespace + ".";
|
string prefix = typeof(UnityHeader).Namespace + ".";
|
||||||
Assembly assembly = Assembly.GetCallingAssembly();
|
Assembly assembly = Assembly.GetExecutingAssembly();
|
||||||
return assembly.GetManifestResourceNames()
|
return assembly.GetManifestResourceNames()
|
||||||
.Where(s => s.StartsWith(prefix) && s.EndsWith(".h"))
|
.Where(s => s.StartsWith(prefix) && s.EndsWith(".h"))
|
||||||
.Select(s => new UnityHeader(s.Substring(prefix.Length)));
|
.Select(s => new UnityHeader(s.Substring(prefix.Length)));
|
||||||
|
|||||||
Reference in New Issue
Block a user