Revert "[change] Il2CppDefGenerator对于团结引擎额外生成一个UNITY_ENGINE_TUANJIE宏定义"

This reverts commit c6caba5662bc1f35bd0590963fd01286672a8185.
main
walon 2024-02-05 20:37:24 +08:00
parent a5c006d67c
commit ae88dd0eec
1 changed files with 0 additions and 11 deletions

View File

@ -39,12 +39,6 @@ namespace HybridCLR.Editor.Il2CppDef
GeneratePlaceHolderAssemblies(); GeneratePlaceHolderAssemblies();
} }
private static bool IsTuanJie()
{
return Regex.IsMatch(Application.unityVersion, @".*t\d+$");
}
private void GenerateIl2CppConfig() private void GenerateIl2CppConfig()
{ {
var frr = new FileRegionReplace(File.ReadAllText(_options.OutputFile)); var frr = new FileRegionReplace(File.ReadAllText(_options.OutputFile));
@ -66,11 +60,6 @@ namespace HybridCLR.Editor.Il2CppDef
} }
} }
if (IsTuanJie())
{
lines.Add($"#define UNITY_ENGINE_TUANJIE 1");
}
frr.Replace("UNITY_VERSION", string.Join("\n", lines)); frr.Replace("UNITY_VERSION", string.Join("\n", lines));
frr.Commit(_options.OutputFile); frr.Commit(_options.OutputFile);