1 unstable release
| 0.1.0 | Jan 29, 2026 |
|---|
#3 in #decompiling
58KB
1.5K
SLoC
hcb2lua
A standalone first-pass HCB bytecode decompiler that emits Lua.
Build
cargo build --release
Run
./target/release/hcb2lua_decompiler --input /path/to/script.hcb --output script.lua --lang sjis
Notes
- The generated Lua targets Lua 5.3+ (uses bitwise operators for
BitTest). Call/Syscallstore their return value in__ret;PushReturnpushes__retonto the value stack.- Syscalls are emitted as
__syscall("Name", ...)stubs.
Dependencies
~7.5MB
~204K SLoC