feat: add dumper main
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
Logger log = new Logger("Main");
|
||||||
|
Dumper dumper = new Dumper("./dump/");
|
||||||
|
|
||||||
|
log.Info("Initializing dumper");
|
||||||
|
bool hasInitialized = dumper.Init();
|
||||||
|
if (!hasInitialized)
|
||||||
|
{
|
||||||
|
log.Error("Dumper.InitAsync failed");
|
||||||
|
Console.ReadKey();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
log.Info("Getting character data and icons");
|
||||||
|
try
|
||||||
|
{
|
||||||
|
dumper.DumpCharacters();
|
||||||
|
dumper.DumpCharacterIcons();
|
||||||
|
}
|
||||||
|
catch (Exception er)
|
||||||
|
{
|
||||||
|
log.Error("Error while dumping characters");
|
||||||
|
log.Error("Exception: {0}", er.ToString());
|
||||||
|
Console.ReadKey();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
log.Info("Dump finished");
|
||||||
|
|
||||||
|
return 0;
|
||||||
Reference in New Issue
Block a user