Skip to content

Commit

Permalink
[N64] Add support for 40 Winks (Aftermarket) and support for addition…
Browse files Browse the repository at this point in the history
…al supported regions (#1666)

40 Winks was released aftermarket on physical media, and support has
been added for this (does NOT include prototypes). The US version was
tested, but was unable to test the EU release (game Id and pak options
should be the same and should theoretically work).

Additionally, looks like ares was missing some region descriptions, so
these have been added as well based on info located at:
https://n64brew.dev/wiki/ROM_Header#Advanced_Homebrew_ROM_Header
  • Loading branch information
remutro authored Oct 18, 2024
1 parent d99b0a3 commit a8274cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mia/medium/nintendo-64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,25 @@ auto Nintendo64::analyze(vector<u8>& data) -> string {
string region = "NTSC";
switch(data[0x3e]) {
case 'A': region = "NTSC"; break; //North America + Japan
case 'B': region = "NTSC"; break; //Brazil
case 'C': region = "NTSC"; break; //China
case 'D': region = "PAL"; break; //Germany
case 'E': region = "NTSC"; break; //North America
case 'F': region = "PAL"; break; //France
case 'G': region = "NTSC"; break; //Gateway 64 (NTSC)
case 'H': region = "PAL"; break; //Netherlands
case 'I': region = "PAL"; break; //Italy
case 'J': region = "NTSC"; break; //Japan
case 'K': region = "NTSC"; break; //Korea
case 'L': region = "PAL"; break; //Gateway 64 (PAL)
case 'N': region = "NTSC"; break; //Canada
case 'P': region = "PAL"; break; //Europe
case 'S': region = "PAL"; break; //Spain
case 'U': region = "PAL"; break; //Australia
case 'W': region = "PAL"; break; //Scandinavia
case 'X': region = "PAL"; break; //Europe
case 'Y': region = "PAL"; break; //Europe
case 'Z': region = "PAL"; break; //Europe
}

string id;
Expand Down Expand Up @@ -431,6 +438,7 @@ auto Nintendo64::analyze(vector<u8>& data) -> string {
if(id == "NDP") {flash = 128_KiB;} //Dinosaur Planet (Unlicensed)

//Controller Pak
if(id == "N4W") {cpak = true; rpak = true;} //40 Winks (Aftermarket)
if(id == "NO7") {cpak = true; rpak = true;} //The World Is Not Enough
if(id == "NAY") {cpak = true;} //Aidyn Chronicles - The First Mage
if(id == "NBS") {cpak = true; rpak = true;} //All-Star Baseball '99
Expand Down Expand Up @@ -642,6 +650,7 @@ auto Nintendo64::analyze(vector<u8>& data) -> string {
if(id == "N8W") {cpak = true;} //World Cup '98
if(id == "NWO") {cpak = true; rpak = true;} //World Driver Championship
if(id == "NXF") {cpak = true; rpak = true;} //Xena Warrior Princess - The Talisman of Fate
if(id == "NXC") {cpak = true; rpak = true;} //Xeno Crisis (Aftermarket)

//Rumble Pak
if(id == "NJQ") {rpak = true;} //Batman Beyond - Return of the Joker [Batman of the Future - Return of the Joker (E)]
Expand Down

0 comments on commit a8274cd

Please sign in to comment.