Esempio n. 1
0
        /// <summary>
        /// Parses a file from the database
        /// </summary>
        /// <param name="name">The name of the file to parse</param>
        /// <param name="device">The device this file is on</param>
        public static Data[] ParseFile(string name, IDevice device)
        {
            File file = FileDatabase.LoadFile(device, name); //Loads the file from the database

            Data[] data = GetParser(file).ParseFile(file);   // Finds the parser and parses the file
            return(data);
        }
Esempio n. 2
0
 public static File?LoadFile(IDevice device, string name)
 {
     return(FileDatabase.LoadFile(device, name));
 }