-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
39 lines (32 loc) · 1.19 KB
/
Program.cs
File metadata and controls
39 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
GDParser by Christopher David Elison
Version: 1.0
This program takes a Grim Dawn character savefile as
an argument and prints out character info to the console.
Uses code from Grim Dawn Item Assistant by marius00
- https://github.com/marius00/iagd
Date created: 2021-04-08 19:37
Date modified: 2021-04-09 02:03
To Do:
[x] Create required class files
[x] Run test with a .gdc file
[ ] Sort out bugs
*/
using System;
namespace GDParser {
public class Program {
static void Main(string[] args) {
// Check a filename is specified as a command line argument
if (args.Length != 1) {
Console.WriteLine("Error: No input .gdc file specified!");
Console.WriteLine("Usage: GDParser.exe <filename.gdc>");
} else {
Console.WriteLine("GDParser");
Console.WriteLine("Attempting to read Grim Dawn savefile\n" + args[0]);
Console.WriteLine("");
CharacterReader testChar = new CharacterReader();
testChar.ReadSummary(args[0]);
}
}
}
}