Gui-Yom / hlbc

Hashlink bytecode disassembler, analyzer, decompiler and assembler.
https://gui-yom.github.io/hlbc/
MIT License
55 stars 9 forks source link

(Feature request) Bulk decompilation #4

Open N3rdL0rd opened 3 months ago

N3rdL0rd commented 3 months ago

Some sort of feature to decompile everything in a bytecode file back out to its original filenames (that is, if debug information is embedded in the bytecode) would be greatly appreciated for modding projects - as in this project's current state, it can't really be used to modify a game's code, only poke around it a bit. In a similar vain, I would also love to see a tool in the GUI that allows partial code changes to be made in the decompiler pane without having to fully decompile and recompile the entire game - as sometimes, functions cannot be decompiled to begin with (especially switch statements!) and have to be reversed by hand.

Gui-Yom commented 3 months ago

Well, as you can see, nothing here is really complete. There are a lot of missing features. I originally intended to try modding myself but I spent all my time working on those tools instead. This means those tools were never really used (to my knowledge) to create anything. All the features currently implemented are for me to explore and debug the tools.

That being said, I never implemented bulk decompilation because decompilation itself is incomplete. As you can see #5, a lot of work remains to make this 100% functional (loops especially).