diff --git a/Cpp2IL/AssemblyBuilder.cs b/Cpp2IL/AssemblyBuilder.cs index 6cb9f84b..b672d20a 100644 --- a/Cpp2IL/AssemblyBuilder.cs +++ b/Cpp2IL/AssemblyBuilder.cs @@ -220,7 +220,6 @@ private static List ProcessTypeContents(Il2CppMetadata metadata, var methodDefinition = new MethodDefinition(methodName, (MethodAttributes) methodDef.flags, ilTypeDefinition.Module.ImportReference(typeof(void))); - //TODO: For Unity 2019 we'll need to fix the imageindex param from 0 to the actual index var offsetInRam = cppAssembly.GetMethodPointer(methodDef.methodIndex, methodId, imageDef.assemblyIndex, methodDef.token); @@ -371,7 +370,7 @@ private static List ProcessTypeContents(Il2CppMetadata metadata, ilTypeDefinition.Events.Add(eventDefinition); } - File.WriteAllText(Path.Combine(Path.GetFullPath("cpp2il_out"), "types", ilTypeDefinition.Module.Assembly.Name.Name, ilTypeDefinition.Name.Replace("<", "_").Replace(">", "_") + "_metadata.txt"), typeMetaText.ToString()); + File.WriteAllText(Path.Combine(Path.GetFullPath("cpp2il_out"), "types", ilTypeDefinition.Module.Assembly.Name.Name, ilTypeDefinition.Name.Replace("<", "_").Replace(">", "_").Replace("|", "_") + "_metadata.txt"), typeMetaText.ToString()); if (cppTypeDefinition.genericContainerIndex < 0) return typeMethods; //Finished processing if not generic