feat: add dumper main

This commit is contained in:
2026-06-18 16:38:39 -03:00
parent b49c0bb781
commit 660e9f8565
+29
View File
@@ -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;