Ver código fonte

此游戏添加了新函数 script_third

DONGGUOLIANGNEW\edy 1 ano atrás
pai
commit
d09589ffdd
1 arquivos alterados com 12 adições e 1 exclusões
  1. 12 1
      新凡人修仙传酷派/script.py

+ 12 - 1
新凡人修仙传酷派/script.py

@@ -27,13 +27,24 @@ def script_first(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameI
 def script_second(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
     return
 
+#在合并渠道代码与游戏代码前执行此函数
+def script_third(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info("执行游戏自定义脚本third")
+    sdk_smali = os.path.join(SDK, "tmp_smali")
+    if not os.path.exists(sdk_smali):
+        return
+    alipay = os.path.join(sdk_smali, 'com','alipay')
+    if os.path.exists(alipay):
+        shutil.rmtree(alipay)
+        logging.info("删除alipay成功:" + alipay)
+    return
+
 
 def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
     return
 
 
 def script_after(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
-
     return