Add N64 header file

Even though it's not used by anything currently, having this "ABCD"
header is a really good idea, especially for the merged N64 DAT. This
was mostly a concern because of the new GoodN64 set that just got
released. The best course of action is to convert all to V64, hash it,
and then check against byte- and word-swapped roms to see that they
still match.
This commit is contained in:
Matt Nadareski
2016-03-13 22:00:45 -07:00
parent e6e37674e4
commit 26eebb290b
3 changed files with 43 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
<detector>
<name>MEGAMERGED</name>
<author>Roman Scherzer, Yori Yoshizuki, Matt Nadareski (darksabre76)</author>
<author>Roman Scherzer, Yori Yoshizuki, CUE, Matt Nadareski (darksabre76)</author>
<version>1.0</version>
<!-- a7800.xml -->
@@ -44,6 +44,23 @@
<data offset="6" value="425339" result="true"/>
</rule>
<!-- n64.xml -->
<!-- V64 format -->
<rule start_offset="0" end_offset="EOF" operation="none">
<data offset="0" value="80371240" result="true"/>
</rule>
<!-- Z64 format -->
<rule start_offset="0" end_offset="EOF" operation="byteswap">
<data offset="0" value="37804012" result="true"/>
</rule>
<!-- N64 format? -->
<rule start_offset="0" end_offset="EOF" operation="wordswap">
<data offset="0" value="40123780" result="true"/>
</rule>
<!-- nes.xml -->
<rule start_offset="10" end_offset="EOF" operation="none">

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<detector>
<name>Nintendo 64 - ABCD</name>
<author>CUE</author>
<version>1.1</version>
<!-- V64 format -->
<rule start_offset="0" end_offset="EOF" operation="none">
<data offset="0" value="80371240" result="true"/>
</rule>
<!-- Z64 format -->
<rule start_offset="0" end_offset="EOF" operation="byteswap">
<data offset="0" value="37804012" result="true"/>
</rule>
<!-- N64 format? -->
<rule start_offset="0" end_offset="EOF" operation="wordswap">
<data offset="0" value="40123780" result="true"/>
</rule>
</detector>

View File

@@ -25,6 +25,7 @@ $headers = array(
"228" => "fds.xml",
"31" => "lynx.xml",
"0" => "mega.xml", // Merged version of all other headers
"234" => "n64.xml",
"238" => "nes.xml",
"241" => "snes.xml", // Self-created to deal with various headers
);