1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

move IW4x parser out of code

add CoD4x parser
This commit is contained in:
RaidMax
2019-02-05 11:14:43 -06:00
parent 0a85d88d36
commit 30055cdc5e
8 changed files with 91 additions and 31 deletions

View File

@ -283,6 +283,24 @@ namespace IW4MAdmin.Application
config.WebfrontBindUrl = "http://0.0.0.0:1624";
await ConfigHandler.Save();
}
foreach (var serverConfig in config.Servers)
{
if (serverConfig.RConParserVersion == null || serverConfig.EventParserVersion == null)
{
foreach (var parser in AdditionalRConParsers)
{
serverConfig.AddRConParser(parser);
}
foreach (var parser in AdditionalEventParsers)
{
serverConfig.AddEventParser(parser);
}
serverConfig.ModifyParsers();
}
}
}
else if (config.Servers.Count == 0)