Closed Sembiance closed 5 months ago
Here are some additional .rsrc files that used to work in older resource_dasm versions:
These files are AppleDouble encoded. resource_dasm used to handle this automatically but it now requires the index format to be explicitly set, since a valid AppleSingle/AppleDouble header could technically also be a valid resource fork header, so it doesn't suffice to just check the first couple of fields for signature values. You can extract resources from these files with the option --index-format=as/ad
. I'm not opposed to adding an option that tries to automatically detect the index format, which would make the behavior more like it used to be; I'll do this if you think it's worth it.
Ahhh, that totally makes sense. Thanks for letting me know about that flag. I'll modify my side to send the appropriate index-format flag.
Thanks again for creating resource_dasm, it's awesome :)
Attached is a mac .rsrc file (Appearance Extension.rsrc.zip) file that resource_dasm (compiled with latest code as of today) is not able to parse:
However, at some point in the past, probably in early to mid 2022, resource_dasm was able to process it. The results of this processing can be seen here: http://discmaster.textfiles.com/browse/639/Ducks%20Unlimited%20Ducks%20&%20Dogs%20Screen%20Saver%20&%20Wallpaper.iso/mac/Ducks%20and%20Dogs%20Installer/Ducks%20and%20Dogs%20Installer/Appearance%20Extension.rsrc
Thus this is technically a regression, as resource_dasm used to be able to extract 700+ things from this file, and now is unable to extract anything.
If this isn't a bug, my guess is in the past 2 years, resource_dasm must have gotten more strict about what it would and wouldn't parse and now rejects this file as invalid?
If that's the case would it possible to add a
--relaxed
flag that would allow resource_dasm to extract as much as it 'can' from a mac .rsrc file, even if it's not formed perfectly?