Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (14 loc) · 985 Bytes

LuaS.md

File metadata and controls

22 lines (14 loc) · 985 Bytes

XLua

似乎XLua对lua5.3做了一些修改,导致XLua生成的luac文件的文件头与lua5.3的不同,所以需要修复文件头才能使用unluac来反编译。

但是原版的unluac只能一次处理一个文件,如果批量调用会很慢,可以试试我修改后支持对文件夹处理的版本:unluac

配合修复文件头的脚本,可以批量处理文件夹下的所有luac文件

python fixLuaS.py input_folder output_folder <unluac_path>

反编译出来的文件中的中文字符往往是形如\228\189\160\229\165\189,可以使用这个脚本来转换为正常的中文字符:fixLuazh.py

python fixLuazh.py input_file <output_file>

参考