Why implemented in gimgunlock? For original locked img files, gimgunlock does not change the header, so the part number should remain the same in header and the unlocked img files should still have "Named Trails". For an existing unlocked img file without part number, all you need is to write a separate tool to open the img file, fseek to offset 48 (0x30 in hex), write 9 bytes of compressed part number there, then close the file. It should be easy to do in Perl or C/C++.
Bookmarks