@@ -17,9 +17,13 @@ public class Options
1717 {
1818 public List < string > HotUpdateAssemblies { get ; set ; }
1919
20- public string OutputFile { get ; set ; }
20+ public string UnityVersionTemplateFile { get ; set ; }
2121
22- public string OutputFile2 { get ; set ; }
22+ public string UnityVersionOutputFile { get ; set ; }
23+
24+ public string AssemblyManifestTemplateFile { get ; set ; }
25+
26+ public string AssemblyManifestOutputFile { get ; set ; }
2327
2428 public string UnityVersion { get ; set ; }
2529
@@ -45,7 +49,7 @@ public void Generate()
4549
4650 private void GenerateIl2CppConfig ( )
4751 {
48- var frr = new FileRegionReplace ( File . ReadAllText ( _options . OutputFile ) ) ;
52+ var frr = new FileRegionReplace ( File . ReadAllText ( _options . UnityVersionTemplateFile ) ) ;
4953
5054 List < string > lines = new List < string > ( ) ;
5155
@@ -93,13 +97,13 @@ private void GenerateIl2CppConfig()
9397
9498 frr . Replace ( "UNITY_VERSION" , string . Join ( "\n " , lines ) ) ;
9599
96- frr . Commit ( _options . OutputFile ) ;
97- Debug . Log ( $ "[HybridCLR.Editor.Il2CppDef.Generator] output:{ _options . OutputFile } ") ;
100+ frr . Commit ( _options . UnityVersionOutputFile ) ;
101+ Debug . Log ( $ "[HybridCLR.Editor.Il2CppDef.Generator] output:{ _options . UnityVersionOutputFile } ") ;
98102 }
99103
100104 private void GeneratePlaceHolderAssemblies ( )
101105 {
102- var frr = new FileRegionReplace ( File . ReadAllText ( _options . OutputFile2 ) ) ;
106+ var frr = new FileRegionReplace ( File . ReadAllText ( _options . AssemblyManifestTemplateFile ) ) ;
103107
104108 List < string > lines = new List < string > ( ) ;
105109
@@ -110,8 +114,8 @@ private void GeneratePlaceHolderAssemblies()
110114
111115 frr . Replace ( "PLACE_HOLDER" , string . Join ( "\n " , lines ) ) ;
112116
113- frr . Commit ( _options . OutputFile2 ) ;
114- Debug . Log ( $ "[HybridCLR.Editor.Il2CppDef.Generator] output:{ _options . OutputFile2 } ") ;
117+ frr . Commit ( _options . AssemblyManifestOutputFile ) ;
118+ Debug . Log ( $ "[HybridCLR.Editor.Il2CppDef.Generator] output:{ _options . AssemblyManifestOutputFile } ") ;
115119 }
116120 }
117121}
0 commit comments