品技

 找回密码
 注册用户
查看: 994|回复: 2

[汉化] 关于汉化脚本的合并

[复制链接] x 0
发表于 2018-11-3 00:44:49 | 显示全部楼层 |阅读模式
一次安装很多个游戏,汉化脚本一个一个执行太麻烦,特比是有的脚本执行时间比较长,人要走开。
因此想把所有游戏的汉化脚本合并在一起,但是发现貌似合并的脚本汉化了没用?不能这样合并吗?


import wupclient

if __name__ == '__main__':
    print("Connecting to wupserver")
    w = wupclient.wupclient()
    if(w.s == None):
        print("Failed to connect to wupserver!")
        exit()
    print("Connected!")
    wupclient.w = w
    print("Mounting SD")
    ret = wupclient.mount_sd()
    if(ret == 0):
        print("Failed to mount SD!")
    else:
        print("Mounted! PAPER_MARIO")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/PAPER_MARIO/US", "/vol/storage_usb01/usr/title/00050000/1f600a00")
        print("Mounted! MARIO_U")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/MARIO_U/main", "/vol/storage_usb01/usr/title/00050000/10101d00/")
        print("Mounted! MARIO_U_PATCH")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/MARIO_U/patch", "/vol/storage_usb01/usr/title/0005000e/10101d00")
        print("Mounted! MARIO_U_DLC")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/MARIO_U/dlc", "/vol/storage_usb01/usr/title/0005000c/10101d00")
        print("Mounted! Watch_Dogs")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/Watch_Dogs/US", "/vol/storage_usb01/usr/title/00050000/10142000")
        print("Mounted! Wii_Party_U ")
        ret = w.cpdir("/vol/storage_sdcard/sdcafiine/0005000010137d00", "/vol/storage_usb01/usr/title/00050000/10137d00")
        print("Mounted! Mario_Party_10")
        ret = w.cpdir("/vol/storage_sdcard/sdcafiine/0005000010162D00", "/vol/storage_usb01/usr/title/00050000/10162d00")
        print("Mounted! Splatoon")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/Splatoon", "/vol/storage_usb01/usr/title/0005000e/10176900")
        print("Mounted! MK8")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/MK8", "/vol/storage_usb01/usr/title/0005000e/1010ec00")
        print("Mounted! Mario_Maker")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/Mario_Maker", "/vol/storage_usb01/usr/title/0005000e/1018dc00")
        print("Mounted! Nintendo_Land")
        ret = w.cpdir("/vol/storage_sdcard/sdcafiine/0005000010102000", "/vol/storage_usb01/usr/title/00050000/10102000")
        print("Mounted! Nintendo_Land_PATCH")
        ret = w.cpdir("/vol/storage_sdcard/sdcafiine/0005000010102000", "/vol/storage_usb01/usr/title/0005000e/10102000")
        print("Mounted! Kirb_curse")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/kirb_curse", "/vol/storage_usb01/usr/title/00050000/101abc00")
        print("Mounted! MARIO_3D_WORLD")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/MARIO_3D_WORLD", "/vol/storage_usb01/usr/title/00050000/10145c00")
        print("Mounted! ZELDA_TWW")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/ZELDA_TWW/content", "/vol/storage_usb01/usr/title/00050000/10143500/content")
        print("Mounted! ZELDA_TL")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/ZELDA_TL/content", "/vol/storage_usb01/usr/title/00050000/1019e500/content")
        print("Mounted! Yoshi")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/Yoshi", "/vol/storage_usb01/usr/title/00050000/10184d00")
        print("Mounted! Yoshi_PATCH")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/Yoshi/meta", "/vol/storage_usb01/usr/title/0005000e/10184d00/meta")
        print("Mounted! Toad")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/Toad/main", "/vol/storage_usb01/usr/title/00050000/10180600")
        print("Mounted! Toad_PATCH")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/Toad/patch", "/vol/storage_usb01/usr/title/0005000e/10180600")
        print("Mounted! PIKMIN3")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/PIKMIN3/patch", "/vol/storage_usb01/usr/title/0005000e/1012bd00")
        print("Mounted! Zelda_BOW")
        ret = w.cpdir("/vol/storage_sdcard/sdcafiine/00050000101c9300", "/vol/storage_usb01/usr/title/0005000e/101c9300")
        print("Mounted! MH3GHD")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/MH3GHD/main/content", "/vol/storage_usb01/usr/title/00050000/10104d00/content")
        print("Mounted! MH3GHD_PATCH")
        ret = w.cpdir("/vol/storage_sdcard/haxchi/MH3GHD/patch/content", "/vol/storage_usb01/usr/title/0005000e/10104d00/content")
    import os
    os.system('pause')
    if(w.fsa_handle != None):
        w.close(w.fsa_handle)
        w.fsa_handle = None
    if(w.s != None):
        w.s.close()
        w.s = None


发表于 2018-11-3 01:26:12 来自手机版论坛 | 显示全部楼层
一个一个装~
回复 支持 反对

使用道具 举报

  • 打卡等级:偶尔看看
  • 打卡总天数:7
  • 打卡月天数:1
  • 打卡总奖励:672
  • 最近打卡:2025-08-03 01:57:06
发表于 2018-11-3 01:57:50 | 显示全部楼层
你直接弄好路径,使用ftp 批量就行了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册用户

本版积分规则

小黑屋|手机版|Archiver|品技 |网站地图

GMT+8, 2026-8-25 06:20 , Processed in 0.060129 second(s), 14 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表