dump.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:yw_save 作者: togenyan 项目源码 文件源码
def allThornyan(file, code=72463062):
    print("=== Yo-kai ===")
    data = open(file, "rb").read()
    data = bytearray(data)
    pos = 0x1D08
    for i in range(240):
        params = struct.unpack("<4x i 56x 5b 5B 5b 5x B 3x 2x H", data[pos:pos+0x5C])
        if params[0] == 0:
            continue
        print("{} -> {}".format(
                youkai.get(params[0], "(unknown)"),
                youkai.get(code, "(unknown)"),
            )
        )
        struct.pack_into("<i", data, pos + 4, code)
        pos += 0x5C
    with open(file + ".edited.yw", "xb") as f:
        f.write(data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号