server/src/convert.c

26 lines
449 B
C
Raw Normal View History

2017-02-26 15:30:58 +01:00
#include <platform.h>
#include <kernel/race.h>
#include <kernel/rules.h>
#include <kernel/xmlreader.h>
#include <races/races.h>
#include <util/xml.h>
#include <storage.h>
int main(int argc, char **argv) {
const char * xmlfile, *catalog;
register_races();
register_xmlreader();
if (argc < 3) return -1;
xmlfile = argv[1];
catalog = argv[2];
read_xml(xmlfile, catalog);
write_rules("rules.dat");
return 0;
2017-02-26 15:03:47 +01:00
}