@@ -137,6 +137,8 @@ private static string IL2CPPBasePath {
137137
138138 internal static string IL2CPPInteropAssemblyPath => Path . Combine ( IL2CPPBasePath , "interop" ) ;
139139
140+ private static string RenameMapPath => Path . Combine ( Paths . BepInExRootPath , "DeobfuscationMap.csv.gz" ) ;
141+
140142 private static ILoggerFactory LoggerFactory { get ; } = MSLoggerFactory . Create ( b =>
141143 {
142144 b . AddProvider ( new BepInExLoggerProvider ( ) )
@@ -173,6 +175,11 @@ static void HashString(ICryptoTransform hash, string str)
173175 HashFile ( md5 , file ) ;
174176 }
175177
178+ if ( File . Exists ( RenameMapPath ) )
179+ {
180+ HashFile ( md5 , RenameMapPath ) ;
181+ }
182+
176183 // Hash some common dependencies as they can affect output
177184 HashString ( md5 , typeof ( InteropAssemblyGenerator ) . Assembly . GetName ( ) . Version . ToString ( ) ) ;
178185 HashString ( md5 , typeof ( Cpp2IlApi ) . Assembly . GetName ( ) . Version . ToString ( ) ) ;
@@ -361,11 +368,10 @@ private static void RunIl2CppInteropGenerator(List<AssemblyDefinition> sourceAss
361368 : null ,
362369 } ;
363370
364- var renameMapLocation = Path . Combine ( Paths . BepInExRootPath , "DeobfuscationMap.csv.gz" ) ;
365- if ( File . Exists ( renameMapLocation ) )
371+ if ( File . Exists ( RenameMapPath ) )
366372 {
367373 Logger . LogInfo ( "Parsing deobfuscation rename mappings" ) ;
368- opts . ReadRenameMap ( renameMapLocation ) ;
374+ opts . ReadRenameMap ( RenameMapPath ) ;
369375 }
370376
371377 Logger . LogInfo ( "Generating interop assemblies" ) ;
0 commit comments