コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: Gamefiles.cs プロジェクト: nextgenhacker/GL.Servers
 /// <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]);
 }
コード例 #3
0
ファイル: Gamefiles.cs プロジェクト: nextgenhacker/GL.Servers
 /// <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));
 }
コード例 #4
0
ファイル: Gamefiles.cs プロジェクト: skwbr/UCS-GUI
 /// <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]);
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 /// <summary>
 /// Initializes the specified table.
 /// </summary>
 internal void Initialize(Table table, Gamefile gamefile)
 {
     this.Initialize(table, (int)gamefile);
 }
コード例 #7
0
 /// <summary>
 /// Gets the <see cref="LogicDataTable"/> at the specified index.
 /// </summary>
 internal LogicDataTable Get(Gamefile index)
 {
     return(this.DataTables[(int)index]);
 }
コード例 #8
0
ファイル: Gamefiles.cs プロジェクト: nako75/RetroClash-1
 public DataTable Get(Gamefile index)
 {
     return(_dataTables[(int)index - 1]);
 }