Storyyeller / Krakatau

Java decompiler, assembler, and disassembler
GNU General Public License v3.0
1.95k stars 219 forks source link

Assemble .j files in Directory #200

Closed 0xCD4 closed 11 months ago

0xCD4 commented 11 months ago

Hey!

I am using Krakatauv2, and I have already modified the instruction in .j files and saved it. All modified .j files are stored in disassembled directory.

When I use ./krak2 asm --out result.jar -- -r disassembled/

It does not work?

the output:

error: Found argument 'disassembled/' which wasn't expected, or isn't valid in this context

USAGE: krak2 asm --out

For more information try --help

And when I tried to use:

./krak2 asm --out result.jar disassembled/ Error: Missing input file extension for 'disassembled/'

this appeared.

Storyyeller commented 11 months ago

Krakatau 2 doesn't have the option to assemble all files in a directory. I could add it if necessary, but it didn't seem to me like many people would need it.

Note that you can also disassemble multiple classes to a single .j file and then assemble that again.

0xCD4 commented 11 months ago

Ha oke!

I will be using for bytecode manipulation.

When I get Krakatauv1, it does not work; it seems that there is something wrong. I am willing to use Krakatauv1, but when I copy it, I reckon that it gives me Krakatauv2.

0xCD4 commented 11 months ago

I fixed it! Thanks for the help!