More country codes.
parent
a13aa374d3
commit
6550d7d327
|
@ -2,13 +2,26 @@
|
|||
{
|
||||
public partial class Cartridge
|
||||
{
|
||||
/// <summary>
|
||||
/// See: https://archive.org/13/items/SNESDevManual/book1.pdf #1-2-20.
|
||||
/// </summary>
|
||||
public enum CountryCode : byte
|
||||
{
|
||||
Germany = 0x44,
|
||||
USA = 0x45,
|
||||
Japan = 0x4A,
|
||||
Europe = 0x50,
|
||||
Australia = 0x55
|
||||
Common = (byte)'A',
|
||||
Brazil = (byte)'B',
|
||||
China = (byte)'C',
|
||||
Germany = (byte)'D',
|
||||
NorthAmerica = (byte)'E',
|
||||
France = (byte)'F',
|
||||
Netherlands = (byte)'H',
|
||||
Italy = (byte)'I',
|
||||
Japan = (byte)'J',
|
||||
Korea = (byte)'K',
|
||||
Canada = (byte)'N',
|
||||
Europe = (byte)'P',
|
||||
Spain = (byte)'S',
|
||||
Australia = (byte)'U',
|
||||
Scandinavia = (byte)'W',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,15 +127,13 @@ namespace DotN64
|
|||
{
|
||||
switch (nintendo64.Cartridge?.Country)
|
||||
{
|
||||
case Cartridge.CountryCode.Europe:
|
||||
case Cartridge.CountryCode.Germany:
|
||||
case Cartridge.CountryCode.Australia:
|
||||
return TVType.PAL;
|
||||
case Cartridge.CountryCode.NorthAmerica:
|
||||
case Cartridge.CountryCode.Japan:
|
||||
case Cartridge.CountryCode.USA:
|
||||
return TVType.NTSC;
|
||||
case Cartridge.CountryCode.Brazil:
|
||||
return TVType.MPAL;
|
||||
default:
|
||||
return 0;
|
||||
return TVType.PAL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue