/// <summary> /// Defines the entry point of the application. /// </summary> private static void Main() { Program.SHA = Program.Checksum; Program.Version = new Version(); Program.Gamefiles = new Gamefiles(); Console.WriteLine("[*] We stored " + Program.Gamefiles.Files.Count + " files."); Console.WriteLine("[*] The output path is \"" + Program.Gamefiles.Output.FullName + "\"."); Console.WriteLine("[*] The SHA is " + Program.SHA + "."); Console.Title = "GL - Patcher | " + Program.SHA + " | " + Program.Gamefiles.Files.Count + " files | 2017 C"; foreach (Gamefile Gamefile in Program.Gamefiles.Files) { Gamefile.Process(); } JObject Json = new JObject(); Json.Add("files", Program.Gamefiles.ToJson); Json.Add("sha", Program.SHA); Json.Add("version", Program.Version.ToString); File.WriteAllText(Program.Gamefiles.Output.FullName + "\\fingerprint.json", Json.ToString(Formatting.None).Replace(@"\\", @"\")); Program.Version.Write(); Console.ReadKey(false); }
/// <summary> /// Gets the <see cref="DataTable"/> at the specified index. /// </summary> /// <param name="Index">The index.</param> internal DataTable Get(Gamefile Index) { return(this.DataTables[(int)Index]); }
/// <summary> /// Gets the <see cref="DataTable"/> at the specified index. /// </summary> /// <param name="Index">The index.</param> internal DataTable Get(Gamefile Index) { return(this.Get((int)Index)); }
/// <summary> /// Get the DataTable at the specified index. /// </summary> /// <param name="_Index">The index.</param> /// <returns>The Data Table.</returns> public DataTable Get(Gamefile _Index) { return(this.DataTables[(int)_Index - 1]); }
/// <summary> /// Gets the <see cref="DataTable" /> at the specified index. /// </summary> /// <param name="Index">The index.</param> public static CsvTable Get(Gamefile Index) { return(CsvFiles.Get((int)Index)); }
/// <summary> /// Initializes the specified table. /// </summary> internal void Initialize(Table table, Gamefile gamefile) { this.Initialize(table, (int)gamefile); }
/// <summary> /// Gets the <see cref="LogicDataTable"/> at the specified index. /// </summary> internal LogicDataTable Get(Gamefile index) { return(this.DataTables[(int)index]); }
public DataTable Get(Gamefile index) { return(_dataTables[(int)index - 1]); }