-
Notifications
You must be signed in to change notification settings - Fork 0
/
licensecodes.h
99 lines (95 loc) · 2.99 KB
/
licensecodes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/** gbdev.gg8.se/wiki/articles/The_Cartridge_Header **/
#ifndef iostream
#include <iostream>
#endif
int chtohx(char v)
{
switch(v)
{
case 'a':
return 10;
case 'b':
return 11;
case 'c':
return 12;
case 'd':
return 13;
case 'e':
return 14;
case 'f':
return 15;
}
return(v-'0');
}
std::string LicenseTranslatorI(int lc)
{
switch(lc)
{
case 0x00: return "none";
case 0x01: return "Nintendo R&D1";
case 0x08: return "Capcom";
case 0x13: return "Electronic Arts";
case 0x18: return "Hudson Soft";
case 0x19: return "b-ai";
case 0x20: return "kss";
case 0x22: return "pow";
case 0x24: return "PCM Complete";
case 0x25: return "san-x";
case 0x28: return "Kemko Japan";
case 0x29: return "seta";
case 0x30: return "Viacom";
case 0x31: return "Nintendo";
case 0x32: return "Bandai";
case 0x33: return "Ocean/Acclaim";
case 0x34: return "Konami";
case 0x35: return "Hector";
case 0x37: return "Taito";
case 0x38: return "Hudson";
case 0x39: return "Banpresto";
case 0x41: return "Ubi Soft";
case 0x42: return "Atlus";
case 0x44: return "Malibu";
case 0x46: return "angel";
case 0x47: return "Bullet-Proof";
case 0x49: return "irem";
case 0x50: return "Absolute";
case 0x51: return "Acclaim";
case 0x52: return "Activision";
case 0x53: return "American sammy";
case 0x54: return "Konami";
case 0x55: return "Hi tech entertainment";
case 0x56: return "LJN";
case 0x57: return "Matchbox";
case 0x58: return "Mattel";
case 0x59: return "Milton Bradley";
case 0x60: return "Titus";
case 0x61: return "Virgin";
case 0x64: return "LucasArts";
case 0x67: return "Ocean";
case 0x69: return "Electronic Arts";
case 0x70: return "Infogrames";
case 0x71: return "Interplay";
case 0x72: return "Borderbund";
case 0x73: return "sculptured";
case 0x75: return "sci";
case 0x78: return "THQ";
case 0x79: return "Accolade";
case 0x80: return "misawa";
case 0x83: return "lozc";
case 0x86: return "tokuma shoten i*";
case 0x87: return "tsukada ori*";
case 0x91: return "Chunsoft";
case 0x92: return "Video system";
case 0x93: return "Ocean/Acclaim";
case 0x95: return "Varie";
case 0x96: return "Yonezawa/s'pal";
case 0x97: return "Kaneko";
case 0x99: return "Pack in soft";
case 0xA4: return "Konami (Yu-Gi-Oh!)";
}
return "";
}
std::string LicenseTranslator(char* lc)
{
return LicenseTranslatorI(chtohx(lc[0])*1 + chtohx(lc[1])*16);
}