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)
评论列表
文章目录