GetModQarFiles() public static method

public static GetModQarFiles ( bool HideExtension = false ) : List
HideExtension bool
return List
Ejemplo n.º 1
0
        // Load filename dictionaries
        public static void LoadDictionaries()
        {
            SettingsManager manager  = new SettingsManager(ModManager.GameDir);
            var             FpkNames = manager.GetModFpkFiles();
            var             QarNames = manager.GetModQarFiles(true);

            File.WriteAllLines("mod_fpk_dict.txt", FpkNames);
            File.WriteAllLines("mod_qar_dict.txt", QarNames);

            if (!File.Exists("qar_dictionary.txt"))
            {
                Debug.LogLine("File not found: qar_dictionary.txt");
            }
            else if (!File.Exists("fpk_dictionary.txt"))
            {
                Debug.LogLine("File not found: fpk_dictionary.txt");
            }
            else
            {
                Hashing.ReadDictionary("qar_dictionary.txt");
                Hashing.ReadDictionary("mod_qar_dict.txt");

                Hashing.ReadMd5Dictionary("fpk_dictionary.txt");
                Hashing.ReadMd5Dictionary("mod_fpk_dict.txt");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds filenames to Hashing dictionaries
        /// </summary>
        public static void LoadModDictionaries()
        {
            SettingsManager manager = new SettingsManager(GamePaths.SnakeBiteSettings);
            //fpk dictionary only really needed for gz
            //var FpkNames = manager.GetModFpkFiles();
            var QarNames = manager.GetModQarFiles(true);

            //File.WriteAllLines("mod_fpk_dict.txt", FpkNames);
            File.WriteAllLines("mod_qar_dict.txt", QarNames);

            //Hashing.ReadMd5Dictionary("mod_fpk_dict.txt");
            Hashing.ReadDictionary("mod_qar_dict.txt");
        }
Ejemplo n.º 3
0
        // Load filename dictionaries
        public static void LoadDictionaries()
        {
            var FpkNames = SettingsManager.GetModFpkFiles();
            var QarNames = SettingsManager.GetModQarFiles(true);

            File.WriteAllLines("mod_fpk_dict.txt", FpkNames);
            File.WriteAllLines("mod_qar_dict.txt", QarNames);

            Hashing.ReadDictionary("qar_dictionary.txt");
            Hashing.ReadDictionary("mod_qar_dict.txt");

            Hashing.ReadMd5Dictionary("fpk_dictionary.txt");
            Hashing.ReadMd5Dictionary("mod_fpk_dict.txt");
        }