static void SplitFile() { IDStrings.Read(".id_db_idx_eu.db", ".id_db_str_eu.db"); Strings.Read("paramstr_eu.db"); UnicodeStrings.Read("paramunistr_eu.db"); ColourStrings.Read("carcolor.sdb"); var database = new ParamDB(); database.ReadData("paramdb_eu.db"); var raceDetails = new RaceDetailDB(); raceDetails.ReadData("racedetail.db"); var raceModes = new RaceModeDB(); raceModes.ReadData("racemode.db"); Directory.CreateDirectory("Data"); Directory.SetCurrentDirectory("Data"); database.DumpData(); raceDetails.DumpData(); raceModes.DumpData(); Strings.Export("Strings"); UnicodeStrings.Export("UnicodeStrings"); ColourStrings.Export("ColourStrings"); IDStrings.Export(); }
static void BuildFile() { var database = new ParamDB(); Directory.SetCurrentDirectory("Data"); IDStrings.Import(); Strings.Import("Strings"); UnicodeStrings.Import("UnicodeStrings"); ColourStrings.Import("ColourStrings"); database.ImportData(); Directory.CreateDirectory("..\\Output"); Directory.SetCurrentDirectory("..\\Output"); database.WriteData(); IDStrings.Write(); Strings.Write("paramstr_eu.db", false); UnicodeStrings.Write("paramunistr_eu.db", true); ColourStrings.Write("carcolor.sdb", true); }