DS games have a cart ID that differs between different carts. The code for retrieving should already exist because I believe it is required as part of the ROM dump process, but there isn't an option to export it.
I can look into it... but I need more info. Sample code would be best. Is that cart id unique to each title, or is it even unique to each cart (like the private header in 3DS carts)?
@Myriachan may be able to provide more info and sample code. Its not unique to each title or each cart. I'm not sure what the pattern is.
I believe 3DS also has a similar thing, but it may be in the "unique data" region of the ROM rather than retrieved via a cart command.
some info to point you in the right direction @d0k3, wooddumper prints it (there's a 3DS DSiWare version if you don't have a cart lying around), looks like it just calls libnds cardReadID(0)
https://github.com/TuxSH/wooddumper/blob/master/libcard/source/card_access.cpp#L107-L108
I swear I mentioned that wooddumper prints it :P
Okay, I still have my doubts this is any useful. This build includes the cart id into the dumped filename:
https://f.secretalgorithm.com/HQNJj/godmode9.firm
Please try it, and also compare the id with what wooddumper puts out for the same cart. We can't keep it in there if it is in any way identifying info, so this is only a first step.
Thanks. I can't try it out but maybe someone else can. Its not sensitive info like 3ds cart's online play data - it even repeats between carts sometimes. Its only useful for preservation purposes afaik.
Does not work @d0k3, you can try it out on your own carts, original cart ID is 0xFC2, newer carts throw in more bits, 0x1FC2, 0x3FC2, 0x8000FFC2, some variation thereof. Is mostly just for No-Intro but would still be very useful to have added.
@NWPlayer123 - how does it not work? Does the cart id just not show up, or is it wrong? Maybe the bytes are just in reverse order?
@d0k3 it adds it as zeros, can't tell if it's the right length
@d0k3 it adds it as zeros, can't tell if it's the right length
Are you saying it just displays a sequence of zeros instead of the full 00001FC2, 00003FC2 or 80000FFC2 for example?
correct
Cart ID and type is now shown in the root dir, besides the name of the cart drive.
Think you can add them to the filename too @d0k3? would make exporting multiple carts easier without having to swap them out to see
Well, if you can convince me that the cart id is actually useful information, maybe. Otherwise, I'd prefer not to further pollute the filename.
Its useful for identifying fake carts, for one - they don't often put in the correct value. But I don't think its a good idea to put it in the ROM filename, as its not a "per-ROM" thing.
@NWPlayer123 You may be able to speed up what you are doing by using a .gm9 script? I'm not sure.
good idea actually @mariomadproductions, that'd probably be easiest
consider this issue closed
Most helpful comment
Cart ID and type is now shown in the root dir, besides the name of the cart drive.