Пример #1
0
        static void SplitArcadeFile(string filename)
        {
            StringTable.Read("eng_unistrdb.dat");
            ArcadeData ArcadeData = new ArcadeData();

            ArcadeData.ReadData(filename);
            ArcadeData.DumpData();
            StringTable.Export();
            CarNameStringTable.Export();
        }
Пример #2
0
        private static void BuildArcadeFile()
        {
            var languageDirectories = Directory.GetDirectories("Strings");

            foreach (string languageDirectory in languageDirectories)
            {
                LanguagePrefix = languageDirectory.Split('\\')[1];
                Console.WriteLine($"Building language '{LanguagePrefix}'...");

                string overridePath = Path.Combine("_Overrides", LanguagePrefix);
                DataFile.OverridePath = Directory.Exists(overridePath) ? overridePath : null;

                var arcadeData = new ArcadeData();
                arcadeData.ImportData();
                Directory.CreateDirectory("Output");
                arcadeData.WriteData(Path.Combine("Output", $"{GetDataFilePrefix()}arcade_data.dat"));
            }
        }