Ejemplo n.º 1
0
        static void SplitLicenseFile(string filename)
        {
            StringTable.Read("eng_unistrdb.dat");
            LicenseData LicenseData = new LicenseData();

            LicenseData.ReadData(filename);
            LicenseData.DumpData();
            StringTable.Export();
            CarNameStringTable.Export();
        }
Ejemplo n.º 2
0
        private static void BuildLicenseFile()
        {
            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 licenseData = new LicenseData();
                licenseData.ImportData();
                Directory.CreateDirectory("Output");
                licenseData.WriteData(Path.Combine("Output", $"{GetDataFilePrefix()}license_data.dat"));
            }
        }