dnasdw / 3dstool

An all-in-one tool for extracting/creating 3ds roms.
MIT License
335 stars 35 forks source link

Latest commit breaks romFS reinsertion #6

Closed AuroraWright closed 7 years ago

AuroraWright commented 8 years ago

With the latest commit, if I do:

./3dstool -f file.cxi -x --header header --exh exheader --exefs exefs --romfs romfs --plain plain --exh-xor exheader.xorpad

and then:

./3dstool -f file2.cxi -t cxi -c --header header --exh exheader --exefs exefs --romfs romfs --plain plain --exh-xor exheader.xorpad --not-update-exefs-hash --not-update-romfs-hash

It outputs:

"ERROR: romfs is too short

ERROR: create file failed"

It works fine with the previous commit. Using Mac OS X. EDIT: looking at the code, I think this is caused from trying to read data from the romFS header, which is encrypted.