| 310 | } |
| 311 | |
| 312 | GameList::Region GameList::ParseDatabaseRegion(const std::string_view db_region) |
| 313 | { |
| 314 | // clang-format off |
| 315 | ////// NTSC ////// |
| 316 | ////////////////// |
| 317 | if (db_region.starts_with("NTSC-B")) |
| 318 | return Region::NTSC_B; |
| 319 | else if (db_region.starts_with("NTSC-C")) |
| 320 | return Region::NTSC_C; |
| 321 | else if (db_region.starts_with("NTSC-HK")) |
| 322 | return Region::NTSC_HK; |
| 323 | else if (db_region.starts_with("NTSC-J")) |
| 324 | return Region::NTSC_J; |
| 325 | else if (db_region.starts_with("NTSC-K")) |
| 326 | return Region::NTSC_K; |
| 327 | else if (db_region.starts_with("NTSC-T")) |
| 328 | return Region::NTSC_T; |
| 329 | else if (db_region.starts_with("NTSC-U")) |
| 330 | return Region::NTSC_U; |
| 331 | ////// PAL ////// |
| 332 | ////////////////// |
| 333 | else if (db_region.starts_with("PAL-AF")) |
| 334 | return Region::PAL_AF; |
| 335 | else if (db_region.starts_with("PAL-AU")) |
| 336 | return Region::PAL_AU; |
| 337 | else if (db_region.starts_with("PAL-A")) |
| 338 | return Region::PAL_A; |
| 339 | else if (db_region.starts_with("PAL-BE")) |
| 340 | return Region::PAL_BE; |
| 341 | else if (db_region.starts_with("PAL-E")) |
| 342 | return Region::PAL_E; |
| 343 | else if (db_region.starts_with("PAL-FI")) |
| 344 | return Region::PAL_FI; |
| 345 | else if (db_region.starts_with("PAL-F")) |
| 346 | return Region::PAL_F; |
| 347 | else if (db_region.starts_with("PAL-GR")) |
| 348 | return Region::PAL_GR; |
| 349 | else if (db_region.starts_with("PAL-G")) |
| 350 | return Region::PAL_G; |
| 351 | else if (db_region.starts_with("PAL-IN")) |
| 352 | return Region::PAL_IN; |
| 353 | else if (db_region.starts_with("PAL-I")) |
| 354 | return Region::PAL_I; |
| 355 | else if (db_region.starts_with("PAL-M")) |
| 356 | return Region::PAL_M; |
| 357 | else if (db_region.starts_with("PAL-NL")) |
| 358 | return Region::PAL_NL; |
| 359 | else if (db_region.starts_with("PAL-NO")) |
| 360 | return Region::PAL_NO; |
| 361 | else if (db_region.starts_with("PAL-PL")) |
| 362 | return Region::PAL_PL; |
| 363 | else if (db_region.starts_with("PAL-P")) |
| 364 | return Region::PAL_P; |
| 365 | else if (db_region.starts_with("PAL-R")) |
| 366 | return Region::PAL_R; |
| 367 | else if (db_region.starts_with("PAL-SC")) |
| 368 | return Region::PAL_SC; |
| 369 | else if (db_region.starts_with("PAL-SWI")) |
nothing calls this directly
no test coverage detected