Debian Codegraph @

Source/Core/DiscIO/Enums.cpp

raw symbols SCIP
1 // Copyright 2016 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #include "DiscIO/Enums.h"
5
6 #include <map>
7 #include <string>
8
9 #include "Common/Common.h"
10 #include "Common/CommonTypes.h"
11 #include "Common/Logging/Log.h"
12 #include "Common/MsgHandler.h"
13
14 namespace DiscIO
15 {
16 std::string GetName(Country country, bool translate)
17 {
18 std::string name;
19
20 switch (country)
21 {
22 case Country::Europe:
23 name = _trans("Europe");
24 break;
25 case Country::Japan:
26 name = _trans("Japan");
27 break;
28 case Country::USA:
29 name = _trans("USA");
30 break;
31 case Country::Australia:
32 name = _trans("Australia");
33 break;
34 case Country::France:
35 name = _trans("France");
36 break;
37 case Country::Germany:
38 name = _trans("Germany");
39 break;
40 case Country::Italy:
41 name = _trans("Italy");
42 break;
43 case Country::Korea:
44 name = _trans("Korea");
45 break;
46 case Country::Netherlands:
47 name = _trans("Netherlands");
48 break;
49 case Country::Russia:
50 name = _trans("Russia");
51 break;
52 case Country::Spain:
53 name = _trans("Spain");
54 break;
55 case Country::Taiwan:
56 name = _trans("Taiwan");
57 break;
58 case Country::World:
59 name = _trans("World");
60 break;
61 default:
62 name = _trans("Unknown");
63 break;
64 }
65
66 return translate ? Common::GetStringT(name.c_str()) : name;
67 }
68
69 std::string GetName(Language language, bool translate)
70 {
71 std::string name;
72
73 switch (language)
74 {
75 case Language::Japanese:
76 name = _trans("Japanese");
77 break;
78 case Language::English:
79 name = _trans("English");
80 break;
81 case Language::German:
82 name = _trans("German");
83 break;
84 case Language::French:
85 name = _trans("French");
86 break;
87 case Language::Spanish:
88 name = _trans("Spanish");
89 break;
90 case Language::Italian:
91 name = _trans("Italian");
92 break;
93 case Language::Dutch:
94 name = _trans("Dutch");
95 break;
96 case Language::SimplifiedChinese:
97 name = _trans("Simplified Chinese");
98 break;
99 case Language::TraditionalChinese:
100 name = _trans("Traditional Chinese");
101 break;
102 case Language::Korean:
103 name = _trans("Korean");
104 break;
105 default:
106 name = _trans("Unknown");
107 break;
108 }
109
110 return translate ? Common::GetStringT(name.c_str()) : name;
111 }
112
113 std::string GetName(Region region, bool translate)
114 {
115 std::string name;
116
117 switch (region)
118 {
119 case Region::NTSC_J:
120 name = _trans("NTSC-J");
121 break;
122 case Region::NTSC_U:
123 name = _trans("NTSC-U");
124 break;
125 case Region::PAL:
126 name = _trans("PAL");
127 break;
128 case Region::NTSC_K:
129 name = _trans("NTSC-K");
130 break;
131 default:
132 name = _trans("Unknown");
133 break;
134 }
135
136 return translate ? Common::GetStringT(name.c_str()) : name;
137 }
138
139 bool IsDisc(Platform volume_type)
140 {
141 return volume_type == Platform::GameCubeDisc || volume_type == Platform::Triforce ||
142 volume_type == Platform::WiiDisc;
143 }
144
145 bool IsWii(Platform volume_type)
146 {
147 return volume_type == Platform::WiiDisc || volume_type == Platform::WiiWAD;
148 }
149
150 bool IsNTSC(Region region)
151 {
152 return region == Region::NTSC_J || region == Region::NTSC_U || region == Region::NTSC_K;
153 }
154
155 int ToGameCubeLanguage(Language language)
156 {
157 if (language < Language::English || language > Language::Dutch)
158 return 0;
159 else
160 return static_cast<int>(language) - 1;
161 }
162
163 Language FromGameCubeLanguage(int language)
164 {
165 if (language < 0 || language > 5)
166 return Language::Unknown;
167 else
168 return static_cast<Language>(language + 1);
169 }
170
171 // Increment CACHE_REVISION (GameFileCache.cpp) if the code below is modified
172
173 Country TypicalCountryForRegion(Region region)
174 {
175 switch (region)
176 {
177 case Region::NTSC_J:
178 return Country::Japan;
179 case Region::NTSC_U:
180 return Country::USA;
181 case Region::PAL:
182 return Country::Europe;
183 case Region::NTSC_K:
184 return Country::Korea;
185 default:
186 return Country::Unknown;
187 }
188 }
189
190 Region SysConfCountryToRegion(u8 country_code)
191 {
192 if (country_code == 0)
193 return Region::Unknown;
194
195 if (country_code < 0x08) // Japan
196 return Region::NTSC_J;
197
198 if (country_code < 0x40) // Americas
199 return Region::NTSC_U;
200
201 if (country_code < 0x80) // Europe, Oceania, parts of Africa
202 return Region::PAL;
203
204 if (country_code < 0xa8) // Southeast Asia
205 return country_code == 0x88 ? Region::NTSC_K : Region::NTSC_J;
206
207 if (country_code < 0xc0) // Middle East
208 return Region::NTSC_U;
209
210 return Region::Unknown;
211 }
212
213 Region CountryCodeToRegion(u8 country_code, Platform platform, Region expected_region,
214 std::optional<u16> revision)
215 {
216 switch (country_code)
217 {
218 case '\2':
219 return expected_region; // Wii Menu (same title ID for all regions)
220
221 case 'J':
222 return Region::NTSC_J;
223
224 case 'W':
225 if (expected_region == Region::PAL)
226 return Region::PAL; // Only the Nordic version of Ratatouille (Wii)
227 else
228 return Region::NTSC_J; // Korean GC games in English or Taiwanese Wii games
229
230 case 'E':
231 if (platform != Platform::GameCubeDisc)
232 return Region::NTSC_U; // The most common country code for NTSC-U
233
234 if (revision)
235 {
236 if (*revision >= 0x30)
237 return Region::NTSC_J; // Korean GC games in English
238 else
239 return Region::NTSC_U; // The most common country code for NTSC-U
240 }
241 else
242 {
243 if (expected_region == Region::NTSC_J)
244 return Region::NTSC_J; // Korean GC games in English
245 else
246 return Region::NTSC_U; // The most common country code for NTSC-U
247 }
248
249 case 'B':
250 case 'N':
251 return Region::NTSC_U;
252
253 case 'X':
254 case 'Y':
255 case 'Z':
256 // Additional language versions, store-exclusive versions, other special versions
257 return expected_region == Region::NTSC_U ? Region::NTSC_U : Region::PAL;
258
259 case 'D':
260 case 'F':
261 case 'H':
262 case 'I':
263 case 'L':
264 case 'M':
265 case 'P':
266 case 'R':
267 case 'S':
268 case 'U':
269 case 'V':
270 return Region::PAL;
271
272 case 'K':
273 case 'Q':
274 case 'T':
275 // All of these country codes are Korean, but the NTSC-K region doesn't exist on GC
276 return platform == Platform::GameCubeDisc ? Region::NTSC_J : Region::NTSC_K;
277
278 default:
279 return Region::Unknown;
280 }
281 }
282
283 Country CountryCodeToCountry(u8 country_code, Platform platform, Region region,
284 std::optional<u16> revision)
285 {
286 switch (country_code)
287 {
288 // Worldwide
289 case 'A':
290 return Country::World;
291
292 // Mixed regions
293 case 'X':
294 case 'Y':
295 case 'Z':
296 // Additional language versions, store-exclusive versions, other special versions
297 return region == Region::NTSC_U ? Country::USA : Country::Europe;
298
299 case 'W':
300 if (platform == Platform::GameCubeDisc)
301 return Country::Korea; // GC games in English released in Korea
302 else if (region == Region::PAL)
303 return Country::Europe; // Only the Nordic version of Ratatouille (Wii)
304 else
305 return Country::Taiwan; // Wii games in traditional Chinese released in Taiwan
306
307 // PAL
308 case 'D':
309 return Country::Germany;
310
311 case 'L': // NTSC-J games released on PAL VC
312 case 'M': // NTSC-U games released on PAL VC
313 case 'V': // Used by some Nordic Wii releases
314 case 'P': // The most common country code for PAL
315 return Country::Europe;
316
317 case 'U':
318 return Country::Australia;
319
320 case 'F':
321 return Country::France;
322
323 case 'I':
324 return Country::Italy;
325
326 case 'H':
327 return Country::Netherlands;
328
329 case 'R':
330 return Country::Russia;
331
332 case 'S':
333 return Country::Spain;
334
335 // NTSC
336 case 'E':
337 if (platform != Platform::GameCubeDisc)
338 return Country::USA; // The most common country code for NTSC-U
339
340 if (revision)
341 {
342 if (*revision >= 0x30)
343 return Country::Korea; // GC games in English released in Korea
344 else
345 return Country::USA; // The most common country code for NTSC-U
346 }
347 else
348 {
349 if (region == Region::NTSC_J)
350 return Country::Korea; // GC games in English released in Korea
351 else
352 return Country::USA; // The most common country code for NTSC-U
353 }
354
355 case 'B': // PAL games released on NTSC-U VC
356 case 'N': // NTSC-J games released on NTSC-U VC
357 return Country::USA;
358
359 case 'J':
360 return Country::Japan;
361
362 case 'K': // Games in Korean released in Korea
363 case 'Q': // NTSC-J games released on NTSC-K VC
364 case 'T': // NTSC-U games released on NTSC-K VC
365 return Country::Korea;
366
367 default:
368 if (country_code > 'A') // Silently ignore IOS wads
369 WARN_LOG_FMT(DISCIO, "Unknown Country Code! {}", static_cast<char>(country_code));
370 return Country::Unknown;
371 }
372 }
373
374 Region GetSysMenuRegion(u16 title_version)
375 {
376 switch (title_version & 0xf)
377 {
378 case 0:
379 return Region::NTSC_J;
380 case 1:
381 return Region::NTSC_U;
382 case 2:
383 return Region::PAL;
384 case 6:
385 return Region::NTSC_K;
386 default:
387 return Region::Unknown;
388 }
389 }
390
391 std::string GetSysMenuVersionString(u16 title_version, bool is_vwii)
392 {
393 std::string version;
394 char region_letter = '\0';
395
396 switch (GetSysMenuRegion(title_version))
397 {
398 case Region::NTSC_J:
399 region_letter = 'J';
400 break;
401 case Region::NTSC_U:
402 region_letter = 'U';
403 break;
404 case Region::PAL:
405 region_letter = 'E';
406 break;
407 case Region::NTSC_K:
408 region_letter = 'K';
409 break;
410 default:
411 WARN_LOG_FMT(DISCIO, "Unknown region for Wii Menu version {}", title_version);
412 break;
413 }
414
415 if (is_vwii)
416 {
417 // For vWii return the Wii U version which installed the menu
418 switch (title_version & 0xff0)
419 {
420 case 512:
421 version = "1.0.0";
422 break;
423 case 544:
424 version = "4.0.0";
425 break;
426 case 608:
427 version = "5.2.0";
428 break;
429 default:
430 version = "?.?.?";
431 break;
432 }
433 }
434 else
435 {
436 switch (title_version & 0xff0)
437 {
438 case 32:
439 version = "1.0";
440 break;
441 case 96:
442 case 128:
443 version = "2.0";
444 break;
445 case 160:
446 version = "2.1";
447 break;
448 case 192:
449 version = "2.2";
450 break;
451 case 224:
452 version = "3.0";
453 break;
454 case 256:
455 version = "3.1";
456 break;
457 case 288:
458 version = "3.2";
459 break;
460 case 320:
461 case 352:
462 version = "3.3";
463 break;
464 case 384:
465 version = (region_letter != 'K' ? "3.4" : "3.5");
466 break;
467 case 416:
468 version = "4.0";
469 break;
470 case 448:
471 version = "4.1";
472 break;
473 case 480:
474 version = "4.2";
475 break;
476 case 512:
477 version = "4.3";
478 break;
479 default:
480 version = "?.?";
481 break;
482 }
483 }
484
485 if (region_letter != '\0')
486 version += region_letter;
487
488 return version;
489 }
490
491 const std::string& GetCompanyFromID(const std::string& company_id)
492 {
493 static const std::map<std::string, std::string> companies = {
494 {"01", "Nintendo"},
495 {"02", "Nintendo"},
496 {"08", "Capcom"},
497 {"0A", "Jaleco / Jaleco Entertainment"},
498 {"0L", "Warashi"},
499 {"0M", "Entertainment Software Publishing"},
500 {"0Q", "IE Institute"},
501 {"13", "Electronic Arts Japan"},
502 {"18", "Hudson Soft / Hudson Entertainment"},
503 {"1K", "Titus Software"},
504 {"20", "DSI Games / ZOO Digital Publishing"},
505 {"28", "Kemco Japan"},
506 {"29", "SETA Corporation"},
507 {"2K", "NEC Interchannel"},
508 {"2L", "Agatsuma Entertainment"},
509 {"2M", "Jorudan"},
510 {"2N", "Smilesoft / Rocket Company"},
511 {"2Q", "MediaKite"},
512 {"36", "Codemasters"},
513 {"41", "Ubisoft"},
514 {"4F", "Eidos Interactive"},
515 {"4Q", "Disney Interactive Studios / Buena Vista Games"},
516 {"4Z", "Crave Entertainment / Red Wagon Games"},
517 {"51", "Acclaim Entertainment"},
518 {"52", "Activision"},
519 {"54", "Take-Two Interactive / GameTek / Rockstar Games / Global Star Software"},
520 {"5D", "Midway Games / Tradewest"},
521 {"5G", "Majesco Entertainment"},
522 {"5H", "3DO / Global Star Software"},
523 {"5L", "NewKidCo"},
524 {"5S", "Evolved Games / Xicat Interactive"},
525 {"5V", "Agetec"},
526 {"5Z", "Data Design / Conspiracy Entertainment"},
527 {"60", "Titus Interactive / Titus Software"},
528 {"64", "LucasArts"},
529 {"68", "Bethesda Softworks / Mud Duck Productions / Vir2L Studios"},
530 {"69", "Electronic Arts"},
531 {"6E", "Sega"},
532 {"6K", "UFO Interactive Games"},
533 {"6L", "BAM! Entertainment"},
534 {"6M", "System 3"},
535 {"6N", "Midas Interactive Entertainment"},
536 {"6S", "TDK Mediactive"},
537 {"6U", "The Adventure Company / DreamCatcher Interactive"},
538 {"6V", "JoWooD Entertainment"},
539 {"6W", "Sega"},
540 {"6X", "Wanadoo Edition"},
541 {"6Z", "NDS Software"},
542 {"70", "Atari (Infogrames)"},
543 {"71", "Interplay Entertainment"},
544 {"75", "SCi Games"},
545 {"78", "THQ / Play THQ"},
546 {"7D", "Sierra Entertainment / Vivendi Games / Universal Interactive Studios"},
547 {"7F", "Kemco"},
548 {"7G", "Rage Software"},
549 {"7H", "Encore Software"},
550 {"7J", "Zushi Games / ZOO Digital Publishing"},
551 {"7K", "Kiddinx Entertainment"},
552 {"7L", "Simon & Schuster Interactive"},
553 {"7M", "Badland Games"},
554 {"7N", "Empire Interactive / Xplosiv"},
555 {"7S", "Rockstar Games"},
556 {"7T", "Scholastic"},
557 {"7U", "Ignition Entertainment"},
558 {"82", "Namco"},
559 {"8G", "NEC Interchannel"},
560 {"8J", "Kadokawa Shoten"},
561 {"8M", "CyberFront"},
562 {"8N", "Success"},
563 {"8P", "Sega"},
564 {"91", "Chunsoft"},
565 {"99", "Marvelous Entertainment / Victor Entertainment / Pack-In-Video / Rising Star Games"},
566 {"9B", "Tecmo"},
567 {"9G",
568 "Take-Two Interactive / Global Star Software / Gotham Games / Gathering of Developers"},
569 {"9S", "Brother International"},
570 {"9Z", "Crunchyroll"},
571 {"A4", "Konami"},
572 {"A7", "Takara"},
573 {"AF", "Namco Bandai Games"},
574 {"AU", "Alternative Software"},
575 {"AX", "Vivendi"},
576 {"B0", "Acclaim Japan"},
577 {"B2", "Bandai Games"},
578 {"BB", "Sunsoft"},
579 {"BL", "MTO"},
580 {"BM", "XING"},
581 {"BN", "Sunrise Interactive"},
582 {"BP", "Global A Entertainment"},
583 {"C0", "Taito"},
584 {"C8", "Koei"},
585 {"CM", "Konami Computer Entertainment Osaka"},
586 {"CQ", "From Software"},
587 {"D9", "Banpresto"},
588 {"DA", "Tomy / Takara Tomy"},
589 {"DQ", "Compile Heart / Idea Factory"},
590 {"E5", "Epoch"},
591 {"E6", "Game Arts"},
592 {"E7", "Athena"},
593 {"E8", "Asmik Ace Entertainment"},
594 {"E9", "Natsume"},
595 {"EB", "Atlus"},
596 {"EL", "Spike"},
597 {"EM", "Konami Computer Entertainment Tokyo"},
598 {"EP", "Sting Entertainment"},
599 {"ES", "Starfish-SD"},
600 {"EY", "Vblank Entertainment"},
601 {"FH", "Easy Interactive"},
602 {"FJ", "Virtual Toys"},
603 {"FK", "The Game Factory"},
604 {"FP", "Mastiff"},
605 {"FR", "Digital Tainment Pool"},
606 {"FS", "XS Games"},
607 {"G0", "Alpha Unit"},
608 {"G2", "Yuke's"},
609 {"G6", "SIMS"},
610 {"G9", "D3 Publisher"},
611 {"GA", "PIN Change"},
612 {"GD", "Square Enix"},
613 {"GE", "Kids Station"},
614 {"GG", "O3 Entertainment"},
615 {"GJ", "Detn8 Games"},
616 {"GK", "Genki"},
617 {"GL", "Gameloft / Ubisoft"},
618 {"GM", "Gamecock Media Group"},
619 {"GN", "Oxygen Games"},
620 {"GR", "GSP"},
621 {"GT", "505 Games"},
622 {"GX", "Commodore"},
623 {"GY", "The Game Factory"},
624 {"GZ", "Gammick Entertainment"},
625 {"H3", "Zen United"},
626 {"H4", "SNK Playmore"},
627 {"HA", "Nobilis"},
628 {"HE", "Gust"},
629 {"HF", "Level-5"},
630 {"HG", "Graffiti Entertainment"},
631 {"HH", "Focus Home Interactive"},
632 {"HJ", "Genius Products"},
633 {"HK", "D2C Games"},
634 {"HL", "Frontier Developments"},
635 {"HM", "HMH Interactive"},
636 {"HN", "High Voltage Software"},
637 {"HQ", "Abstraction Games"},
638 {"HS", "Tru Blu"},
639 {"HT", "Big Blue Bubble"},
640 {"HU", "Ghostfire Games"},
641 {"HW", "Incredible Technologies"},
642 {"HY", "Reef Entertainment"},
643 {"HZ", "Nordcurrent"},
644 {"J8", "D4 Enterprise"},
645 {"J9", "AQ Interactive"},
646 {"JD", "SKONEC Entertainment"},
647 {"JE", "E Frontier"},
648 {"JF", "Arc System Works"},
649 {"JG", "The Games Company"},
650 {"JH", "City Interactive"},
651 {"JJ", "Deep Silver"},
652 {"JP", "redspotgames"},
653 {"JR", "Engine Software"},
654 {"JS", "Digital Leisure"},
655 {"JT", "Empty Clip Studios"},
656 {"JU", "Riverman Media"},
657 {"JV", "JV Games"},
658 {"JW", "BigBen Interactive"},
659 {"JX", "Shin'en Multimedia"},
660 {"JY", "Steel Penny Games"},
661 {"JZ", "505 Games"},
662 {"K2", "Coca-Cola (Japan) Company"},
663 {"K3", "Yudo"},
664 {"K6", "Nihon System"},
665 {"KB", "Nippon Ichi Software"},
666 {"KG", "Kando Games"},
667 {"KH", "Joju Games"},
668 {"KJ", "Studio Zan"},
669 {"KK", "DK Games"},
670 {"KL", "Abylight"},
671 {"KM", "Deep Silver"},
672 {"KN", "Gameshastra"},
673 {"KP", "Purple Hills"},
674 {"KQ", "Over the Top Games"},
675 {"KR", "KREA Medie"},
676 {"KT", "The Code Monkeys"},
677 {"KW", "Semnat Studios"},
678 {"KY", "Medaverse Studios"},
679 {"L3", "G-Mode"},
680 {"L8", "FujiSoft"},
681 {"LB", "Tryfirst"},
682 {"LD", "Studio Zan"},
683 {"LF", "Kemco"},
684 {"LG", "Black Bean Games"},
685 {"LJ", "Legendo Entertainment"},
686 {"LL", "HB Studios"},
687 {"LN", "GameOn"},
688 {"LP", "Left Field Productions"},
689 {"LR", "Koch Media"},
690 {"LT", "Legacy Interactive"},
691 {"LU", "Lexis Num\xc3\xa9rique"}, // We can't use a u8 prefix due to C++20's u8string
692 {"LW", "Grendel Games"},
693 {"LY", "Icon Games / Super Icon"},
694 {"M0", "Studio Zan"},
695 {"M1", "Grand Prix Games"},
696 {"M2", "HomeMedia"},
697 {"M4", "Cybird"},
698 {"M6", "Perpetuum"},
699 {"MB", "Agenda"},
700 {"MD", "Ateam"},
701 {"ME", "Silver Star Japan"},
702 {"MF", "Yamasa"},
703 {"MH", "Mentor Interactive"},
704 {"MJ", "Mumbo Jumbo"},
705 {"ML", "DTP Young Entertainment"},
706 {"MM", "Big John Games"},
707 {"MN", "Mindscape"},
708 {"MR", "Mindscape"},
709 {"MS", "Milestone / UFO Interactive Games"},
710 {"MT", "Blast! Entertainment"},
711 {"MV", "Marvelous Entertainment"},
712 {"MZ", "Mad Catz"},
713 {"N0", "Exkee"},
714 {"N4", "Zoom"},
715 {"N7", "T&S"},
716 {"N9", "Tera Box"},
717 {"NA", "Tom Create"},
718 {"NB", "HI Games & Publishing"},
719 {"NE", "Kosaido"},
720 {"NF", "Peakvox"},
721 {"NG", "Nordic Games"},
722 {"NH", "Gevo Entertainment"},
723 {"NJ", "Enjoy Gaming"},
724 {"NK", "Neko Entertainment"},
725 {"NL", "Nordic Softsales"},
726 {"NN", "Nnooo"},
727 {"NP", "Nobilis"},
728 {"NQ", "Namco Bandai Partners"},
729 {"NR", "Destineer Publishing / Bold Games"},
730 {"NS", "Nippon Ichi Software America"},
731 {"NT", "Nocturnal Entertainment"},
732 {"NV", "Nicalis"},
733 {"NW", "Deep Fried Entertainment"},
734 {"NX", "Barnstorm Games"},
735 {"NY", "Nicalis"},
736 {"P1", "Poisoft"},
737 {"PH", "Playful Entertainment"},
738 {"PK", "Knowledge Adventure"},
739 {"PL", "Playlogic Entertainment"},
740 {"PM", "Warner Bros. Interactive Entertainment"},
741 {"PN", "P2 Games"},
742 {"PQ", "PopCap Games"},
743 {"PS", "Bplus"},
744 {"PT", "Firemint"},
745 {"PU", "Pub Company"},
746 {"PV", "Pan Vision"},
747 {"PY", "Playstos Entertainment"},
748 {"PZ", "GameMill Publishing"},
749 {"Q2", "Santa Entertainment"},
750 {"Q3", "Asterizm"},
751 {"Q4", "Hamster"},
752 {"Q5", "Recom"},
753 {"QA", "Miracle Kidz"},
754 {"QC", "Kadokawa Shoten / Enterbrain"},
755 {"QH", "Virtual Play Games"},
756 {"QK", "MACHINE Studios"},
757 {"QM", "Object Vision Software"},
758 {"QQ", "Gamelion"},
759 {"QR", "Lapland Studio"},
760 {"QT", "CALARIS"},
761 {"QU", "QubicGames"},
762 {"QV", "Ludia"},
763 {"QW", "Kaasa Solution"},
764 {"QX", "Press Play"},
765 {"QZ", "Hands-On Mobile"},
766 {"RA", "Office Create"},
767 {"RG", "Ronimo Games"},
768 {"RH", "h2f Games"},
769 {"RM", "Rondomedia"},
770 {"RN", "Mastiff / N3V Games"},
771 {"RQ", "GolemLabs & Zoozen"},
772 {"RS", "Brash Entertainment"},
773 {"RT", "RTL Enterprises"},
774 {"RV", "bitComposer Games"},
775 {"RW", "RealArcade"},
776 {"RX", "Reflexive Entertainment"},
777 {"RZ", "Akaoni Studio"},
778 {"S5", "SouthPeak Games"},
779 {"SH", "Sabarasa"},
780 {"SJ", "Cosmonaut Games"},
781 {"SP", "Blade Interactive Studios"},
782 {"SQ", "Sonalysts"},
783 {"SR", "SnapDragon Games"},
784 {"SS", "Sanuk Games"},
785 {"ST", "Stickmen Studios"},
786 {"SU", "Slitherine"},
787 {"SV", "SevenOne Intermedia"},
788 {"SZ", "Storm City Games"},
789 {"TH", "Kolkom"},
790 {"TJ", "Broken Rules"},
791 {"TL", "Telltale Games"},
792 {"TR", "Tetris Online"},
793 {"TS", "Triangle Studios"},
794 {"TV", "Tivola"},
795 {"TW", "Two Tribes"},
796 {"TY", "Teyon"},
797 {"UG", "Data Design Interactive / Popcorn Arcade / Metro 3D"},
798 {"UH", "Intenium Console"},
799 {"UJ", "Ghostlight"},
800 {"UK", "iFun4all"},
801 {"UN", "Chillingo"},
802 {"UP", "EnjoyUp Games"},
803 {"UR", "Sudden Games"},
804 {"US", "USM"},
805 {"UU", "Onteca"},
806 {"UV", "Fugazo"},
807 {"UW", "Coresoft"},
808 {"VG", "Vogster Entertainment"},
809 {"VK", "Sandlot Games"},
810 {"VL", "Eko Software"},
811 {"VN", "Valcon Games"},
812 {"VP", "Virgin Play"},
813 {"VS", "Korner Entertainment"},
814 {"VT", "Microforum Games"},
815 {"VU", "Double Jungle"},
816 {"VV", "Pixonauts"},
817 {"VX", "Frontline Studios"},
818 {"VZ", "Little Orbit"},
819 {"WD", "Amazon"},
820 {"WG", "2D Boy"},
821 {"WH", "NinjaBee"},
822 {"WJ", "Studio Walljump"},
823 {"WL", "Wired Productions"},
824 {"WN", "tons of bits"},
825 {"WP", "White Park Bay Software"},
826 {"WQ", "Revistronic"},
827 {"WR", "Warner Bros. Interactive Entertainment"},
828 {"WS", "MonkeyPaw Games"},
829 {"WW", "Slang Publishing"},
830 {"WY", "WayForward Technologies"},
831 {"WZ", "Wizarbox"},
832 {"X0", "SDP Games"},
833 {"X3", "CK Games"},
834 {"X4", "Easy Interactive"},
835 {"XB", "Hulu"},
836 {"XG", "XGen Studios"},
837 {"XJ", "XSEED Games"},
838 {"XK", "Exkee"},
839 {"XM", "DreamBox Games"},
840 {"XN", "Netflix"},
841 {"XS", "Aksys Games"},
842 {"XT", "Funbox Media"},
843 {"XU", "Shanblue Interactive"},
844 {"XV", "Keystone Game Studio"},
845 {"XW", "Lemon Games"},
846 {"XY", "Gaijin Games"},
847 {"Y1", "Tubby Games"},
848 {"Y5", "Easy Interactive"},
849 {"Y6", "Motiviti"},
850 {"Y7", "The Learning Company"},
851 {"Y9", "RadiationBurn"},
852 {"YC", "NECA"},
853 {"YD", "Infinite Dreams"},
854 {"YF", "O2 Games"},
855 {"YG", "Maximum Family Games"},
856 {"YJ", "Frozen Codebase"},
857 {"YK", "MAD Multimedia"},
858 {"YN", "Game Factory"},
859 {"YS", "Yullaby"},
860 {"YT", "Corecell Technology"},
861 {"YV", "KnapNok Games"},
862 {"YX", "Selectsoft"},
863 {"YY", "FDG Entertainment"},
864 {"Z4", "Ntreev Soft"},
865 {"Z5", "Shinsegae I&C"},
866 {"ZA", "WBA Interactive"},
867 {"ZG", "Zallag"},
868 {"ZH", "Internal Engine"},
869 {"ZJ", "Performance Designed Products"},
870 {"ZK", "Anima Game Studio"},
871 {"ZP", "Fishing Cactus"},
872 {"ZS", "Zinkia Entertainment"},
873 {"ZV", "RedLynx"},
874 {"ZW", "Judo Baby"},
875 {"ZX", "TopWare Interactive"}};
876
877 static const std::string EMPTY_STRING;
878 auto iterator = companies.find(company_id);
879 if (iterator != companies.end())
880 return iterator->second;
881 else
882 return EMPTY_STRING;
883 }
884 } // namespace DiscIO