Fix missing regions during db import.

This commit is contained in:
King_DuckZ 2020-02-27 23:22:21 +01:00
parent 2fbbdc7536
commit fe1edbdd1f

View file

@ -21,7 +21,8 @@ extern(C) private int callback(void */*NotUsed*/, int /*argc*/, char **/*argv*/,
enum Regions : int { enum Regions : int {
Unknown, Europe, Japan, USA, Asia, Germany, Spain, Korea, All, Italy, Unknown, Europe, Japan, USA, Asia, Germany, Spain, Korea, All, Italy,
France, Russia, Poland, Netherlands, Portugal, India, Belgium, France, Russia, Poland, Netherlands, Portugal, India, Belgium,
UnitedKingdom, Australia UnitedKingdom, Australia, JapanAndAsia, JapanAndKorea, EuropeAndAustralia,
SpainAndPortugal, BelgiumAndNetherlands
}; };
private int region_id(string path) pure { private int region_id(string path) pure {
@ -44,6 +45,11 @@ private int region_id(string path) pure {
case "Be": return Regions.Belgium; case "Be": return Regions.Belgium;
case "Uk": return Regions.UnitedKingdom; case "Uk": return Regions.UnitedKingdom;
case "Au": return Regions.Australia; case "Au": return Regions.Australia;
case "J,A": return Regions.JapanAndAsia;
case "J,K": return Regions.JapanAndKorea;
case "E,Au": return Regions.EuropeAndAustralia;
case "S,Pt": return Regions.SpainAndPortugal;
case "Be,N": return Regions.BelgiumAndNetherlands;
default: return Regions.Unknown; default: return Regions.Unknown;
} }
} }