From fe1edbdd1f37ff63b6e2204f099cd229dadcaf75 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Thu, 27 Feb 2020 23:22:21 +0100 Subject: [PATCH] Fix missing regions during db import. --- tools/csv2sqlite/main.d | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/csv2sqlite/main.d b/tools/csv2sqlite/main.d index c9505ed..fc2200c 100644 --- a/tools/csv2sqlite/main.d +++ b/tools/csv2sqlite/main.d @@ -21,7 +21,8 @@ extern(C) private int callback(void */*NotUsed*/, int /*argc*/, char **/*argv*/, enum Regions : int { Unknown, Europe, Japan, USA, Asia, Germany, Spain, Korea, All, Italy, France, Russia, Poland, Netherlands, Portugal, India, Belgium, - UnitedKingdom, Australia + UnitedKingdom, Australia, JapanAndAsia, JapanAndKorea, EuropeAndAustralia, + SpainAndPortugal, BelgiumAndNetherlands }; private int region_id(string path) pure { @@ -44,6 +45,11 @@ private int region_id(string path) pure { case "Be": return Regions.Belgium; case "Uk": return Regions.UnitedKingdom; 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; } }