From 9ee8065d571761839b238fe3e57dc08cea70925e Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 27 Jun 2020 21:48:27 +0200 Subject: [PATCH] C++: Fix assembly resource location bug --- Il2CppInspector.Common/Cpp/UnityHeaders/UnityHeader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/Cpp/UnityHeaders/UnityHeader.cs b/Il2CppInspector.Common/Cpp/UnityHeaders/UnityHeader.cs index 58da0c4..11656d8 100644 --- a/Il2CppInspector.Common/Cpp/UnityHeaders/UnityHeader.cs +++ b/Il2CppInspector.Common/Cpp/UnityHeaders/UnityHeader.cs @@ -64,7 +64,7 @@ namespace Il2CppInspector.Cpp.UnityHeaders // List all header files embedded into this build of Il2Cpp public static IEnumerable 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)));