Skip to content

Commit

Permalink
Added full gamecube/wii publisher list
Browse files Browse the repository at this point in the history
  • Loading branch information
Asnivor committed Oct 9, 2017
1 parent 9689a9b commit 50cbbf4
Show file tree
Hide file tree
Showing 4 changed files with 430 additions and 61 deletions.
1 change: 1 addition & 0 deletions DiscTools/DiscToolsNET20.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<Compile Include="Inspection\InterroPSX.cs" />
<Compile Include="Inspection\InterroAll.cs" />
<Compile Include="Inspection\Interrogator.cs" />
<Compile Include="Inspection\Statics\NintendoLookup.cs" />
<Compile Include="Inspection\TextConverters.cs" />
<Compile Include="OtherFormats\CDi.cs" />
<Compile Include="ISO\API_MednaDisc.cs" />
Expand Down
1 change: 1 addition & 0 deletions DiscTools/DiscToolsNET452.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<Compile Include="Inspection\InterroSaturn.cs" />
<Compile Include="Inspection\InterroSegaCD.cs" />
<Compile Include="Inspection\InterroSpecific.cs" />
<Compile Include="Inspection\Statics\NintendoLookup.cs" />
<Compile Include="Inspection\TextConverters.cs" />
<Compile Include="ISO\API_MednaDisc.cs" />
<Compile Include="ISO\Bit.cs" />
Expand Down
63 changes: 2 additions & 61 deletions DiscTools/Inspection/InterroGamecube.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,67 +76,8 @@ public bool GetGamecubeData(string lbaString)

// maker code
string makerHex = Encoding.Default.GetString(Encoding.Default.GetBytes(lbaString).Skip(4).Take(2).ToArray());
string vendor = "";

switch (makerHex)
{
case "01":
vendor = "Nintendo";
break;
case "08":
vendor = "Capcom";
break;
case "41":
vendor = "Ubisoft";
break;
case "4F":
vendor = "Eidos";
break;
case "51":
vendor = "Acclaim";
break;
case "52":
vendor = "Activision";
break;
case "5D":
vendor = "Midway";
break;
case "5G":
vendor = "Hudson";
break;
case "64":
vendor = "Lucas Arts";
break;
case "69":
vendor = "Electronic Arts";
break;
case "6S":
vendor = "TDK Mediactive";
break;
case "8P":
vendor = "Sega";
break;
case "A4":
vendor = "Mirage Studios";
break;
case "AF":
vendor = "Namco";
break;
case "B2":
vendor = "Bandai";
break;
case "DA":
vendor = "Tomy";
break;
case "EM":
vendor = "Konami";
break;
default:
vendor = "Unknown";
break;
}

discI.Data.ManufacturerID = vendor;

discI.Data.Publisher = Statics.NintendoLookup.GetMaker(makerHex);

// disc id
string discId = Encoding.Default.GetString(Encoding.Default.GetBytes(lbaString).Skip(6).Take(1).ToArray());
Expand Down
Loading

0 comments on commit 50cbbf4

Please sign in to comment.