|
@@ -177,30 +177,28 @@ def addGameLauncherActivity(manifest, screenOrientation, activity):
|
|
|
tree.write(manifest, encoding)
|
|
|
|
|
|
def addAKJson(game, sdk, subChannel, config):
|
|
|
- '''
|
|
|
- 添加config.json
|
|
|
- '''
|
|
|
+
|
|
|
+ print('add addAKJson ...')
|
|
|
+
|
|
|
if 'akJson' not in config:
|
|
|
return 0
|
|
|
|
|
|
- print('add config.json...')
|
|
|
decompliePath = file_utils.getDecompliePath(game, sdk, subChannel, config['cache'])
|
|
|
configJson = os.path.join(decompliePath, 'assets', 'tygrm_ak.json')
|
|
|
- jsonText = json.dumps(config['configData'], ensure_ascii=False)
|
|
|
+ jsonText = json.dumps(config['akJson'], ensure_ascii=False)
|
|
|
file_utils.createFile(configJson, jsonText)
|
|
|
return 0
|
|
|
|
|
|
|
|
|
def addPJson(game, sdk, subChannel, config):
|
|
|
- '''
|
|
|
- 添加config.json
|
|
|
- '''
|
|
|
+
|
|
|
+ print('add addPJson ...')
|
|
|
+
|
|
|
if 'pJson' not in config:
|
|
|
return 0
|
|
|
|
|
|
- print('add config.json...')
|
|
|
decompliePath = file_utils.getDecompliePath(game, sdk, subChannel, config['cache'])
|
|
|
configJson = os.path.join(decompliePath, 'assets', 'tygrm_config_p.json')
|
|
|
- jsonText = json.dumps(config['configData'], ensure_ascii=False)
|
|
|
+ jsonText = json.dumps(config['pJson'], ensure_ascii=False)
|
|
|
file_utils.createFile(configJson, jsonText)
|
|
|
return 0
|