forked from github/server
use converter frm noxml branch
This commit is contained in:
parent
67252e2924
commit
f406c47657
|
@ -1,3 +1,25 @@
|
|||
int main(void) {
|
||||
return -1;
|
||||
#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;
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ pool.c
|
|||
race.c
|
||||
region.c
|
||||
resources.c
|
||||
rules.c
|
||||
save.c
|
||||
ship.c
|
||||
skills.c
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
int read_rules(const char *filename);
|
||||
int write_rules(const char * filename);
|
||||
|
Loading…
Reference in New Issue