dont pass working path to BotParser - not used

copy changes
This commit is contained in:
Chomp 2021-08-13 16:25:19 +01:00
parent 16a59b968c
commit f7db34a402

View File

@ -6,18 +6,19 @@ namespace Generator
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
//TODO: pass these into functions to act as whitelist
string[] botTypes = { "assault", "marksman", "pmcbot", "bossbully", "bosskilla" }; string[] botTypes = { "assault", "marksman", "pmcbot", "bossbully", "bosskilla" };
// Read raw bot dumps from live and turn into c# objects // Read raw bot dumps from live and turn into c# objects
var workingPath = Directory.GetCurrentDirectory(); var workingPath = Directory.GetCurrentDirectory();
var dumpPath = $"{workingPath}//dumps"; var dumpPath = $"{workingPath}//dumps";
var botParser = new BotParser(workingPath, dumpPath, botTypes); var botParser = new BotParser(dumpPath, botTypes);
var parsedBots = botParser.Parse(); var parsedBots = botParser.Parse();
if (parsedBots.Count == 0) if (parsedBots.Count == 0)
{ {
Helpers.LoggingHelpers.LogToConsole("no bots found, unable to continue"); Helpers.LoggingHelpers.LogToConsole("no bots found, unable to continue");
Helpers.LoggingHelpers.LogToConsole("Check your dumps are in 'Generator\\bin\\Debug\\netcoreapp3.1\\dumps' and start with 'resp.' NOT 'req'"); Helpers.LoggingHelpers.LogToConsole("Check your dumps are in 'Generator\\bin\\Debug\\netcoreapp3.1\\dumps' and start with 'resp.' NOT 'req.'");
return; return;
} }