Doomulation said:Oh...
Bah! Too confusing, I'll just use the old fasion way of using the CRC
Hmmm how about a 'good' plugin for that? IE an optional plugin for emulators that allows them to send the data for a rom to the plugin and indentify if that rom is good or not. This prevents having to have each emulator author code it into there emulator. Simplifies using the MD5 code as well since the plugin would do all the detection and calculation.Hacktarux said:
I don't think you understand what i am trying to make.
I am not searching to know how to identify a game, i am searching how to detect if a rom is a good or bad dump. I think it is usefull to integrate it in emulators because the goodn64 tool is not easy to understand by a newbie. Maybe, i'm wrong but i can see in this message board that it's the origine of many questions.
Cyberman said:
Hmmm how about a 'good' plugin for that? IE an optional plugin for emulators that allows them to send the data for a rom to the plugin and indentify if that rom is good or not. This prevents having to have each emulator author code it into there emulator. Simplifies using the MD5 code as well since the plugin would do all the detection and calculation.
Cyb
I very well understand what you are trying to make, but it is still very confusing to me.Hacktarux said:
I don't think you understand what i am trying to make.
I am not searching to know how to identify a game, i am searching how to detect if a rom is a good or bad dump. I think it is usefull to integrate it in emulators because the goodn64 tool is not easy to understand by a newbie. Maybe, i'm wrong but i can see in this message board that it's the origine of many questions.
True, I could do it your way, but I am confused on how it works.Hacktarux said:Hey doom, i don't have anything against you, but your crc check is totally useless. I have just check your utility and it just extracts the crc code stored in the rom header. + you have made useless work because these code were in the pj64 rdb file. So your utility just check 8 bytes of the rom, if these 8 bytes are right, you assume that all the other bytes are right !
MD5 technic checks every bytes of the rom, if you change one bit in the file, the result code is totally different.
I understand THAT.Hacktarux said:I know that pj64 can detect some bad dumps but generally it can't. Maybe i will make a dll, but if not, here is what you have to do :
you load the rom in a buffer.
then you byteswap the rom so it is in z64 format : it has to begin with 0x80 0x37 0x12 0x40
you calculate the md5 code of this buffer (there's many dlls to do that available on the net in the language you want)
and then you compare the result with the codes you can find in the files posted in this thread
Hope it helps you to understand that.