use converter frm noxml branch

This commit is contained in:
Enno Rehling 2017-02-26 15:30:58 +01:00
parent 67252e2924
commit f406c47657
4 changed files with 42 additions and 2 deletions

View File

@ -1,3 +1,25 @@
int main(void) { #include <platform.h>
return -1;
#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;
} }

View File

@ -54,6 +54,7 @@ pool.c
race.c race.c
region.c region.c
resources.c resources.c
rules.c
save.c save.c
ship.c ship.c
skills.c skills.c

12
src/kernel/rules.c Normal file
View File

@ -0,0 +1,12 @@
#include <platform.h>
#include "rules.h"
int write_rules(const char *filename) {
return -1;
}
int read_rules(const char *filename)
{
return -1;
}

5
src/kernel/rules.h Normal file
View File

@ -0,0 +1,5 @@
#pragma once
int read_rules(const char *filename);
int write_rules(const char * filename);