1616
1717class ResourceCompiler (object ):
1818 def __init__ (self , devKitPath : Path , acVersion : str , buildNum : str , addonName : str , languageCode : str , defaultLanguageCode : str ,
19- pattern : str , sourcesPath : Path , resourcesPath : Path , resourceObjectsPath : Path , permissiveLocalization : bool ):
19+ sourcesPath : Path , resourcesPath : Path , resourceObjectsPath : Path , permissiveLocalization : bool ):
2020 self .devKitPath = devKitPath
2121 self .acVersion = acVersion
2222 self .buildNum = buildNum
@@ -29,7 +29,7 @@ def __init__ (self, devKitPath: Path, acVersion: str, buildNum: str, addonName:
2929 self .permissiveLocalization = permissiveLocalization
3030 self .resConvPath = None
3131 self .nativeResourceFileExtension = None
32- self .localizationMappingTable = FillLocalizationMappingTable (devKitPath , pattern )
32+ self .localizationMappingTable = FillLocalizationMappingTable (devKitPath )
3333
3434 def GetPlatformDevKitLinkKey (self ) -> str :
3535 return ""
@@ -259,7 +259,7 @@ def RunResConv (self, platformSign: str, codepage: str, inputFilePath: Path) ->
259259class WinResourceCompiler (ResourceCompiler ):
260260 def __init__ (self , devKitPath : Path , acVersion : str , buildNum : str , addonName : str , languageCode : str , defaultLanguageCode : str , sourcesPath : Path , resourcesPath : Path , resourceObjectsPath : Path , permissiveLocalization : bool ):
261261 super (WinResourceCompiler , self ).__init__ (devKitPath , acVersion , buildNum , addonName , languageCode , defaultLanguageCode ,
262- r'#define\s+VERSION_APPENDIX\s+"([A-Z]+)"[\s\S]*?#define\s+WIN_LANGCHARSET_STR\s+"([^"]+)"' , sourcesPath , resourcesPath , resourceObjectsPath , permissiveLocalization )
262+ sourcesPath , resourcesPath , resourceObjectsPath , permissiveLocalization )
263263 self .resConvPath = devKitPath / 'Tools' / 'Win' / 'ResConv.exe'
264264 self .nativeResourceFileExtension = '.rc2'
265265
@@ -332,7 +332,7 @@ def CompileNativeResource (self, resultResourcePath: Path) -> None:
332332class MacResourceCompiler (ResourceCompiler ):
333333 def __init__ (self , devKitPath : Path , acVersion : str , buildNum : str , addonName : str , languageCode : str , defaultLanguageCode : str , sourcesPath : Path , resourcesPath : Path , resourceObjectsPath : Path , permissiveLocalization : bool ):
334334 super (MacResourceCompiler , self ).__init__ (devKitPath , acVersion , buildNum , addonName , languageCode , defaultLanguageCode ,
335- r'#define\s+VERSION_APPENDIX\s+"([A-Z]+)"[\s\S]*?#define\s+MAC_REGION_NAME\s+"([^"]+)"' , sourcesPath , resourcesPath , resourceObjectsPath , permissiveLocalization )
335+ sourcesPath , resourcesPath , resourceObjectsPath , permissiveLocalization )
336336 self .resConvPath = devKitPath / 'Tools' / 'OSX' / 'ResConv'
337337 self .nativeResourceFileExtension = '.ro'
338338
0 commit comments