1 /*********************************
2 ** Tsunagari Tile Engine **
4 ** Copyright 2011-2012 OmegaSDG **
5 *********************************/
12 #include <libxml/parser.h>
14 #include "client-conf.h"
22 #include "os-windows.h"
29 // Initialize the C library's random seed.
30 srand((unsigned)time(NULL
));
36 * This initializes the XML library and checks for potential
37 * ABI mismatches between the version it was compiled for and
38 * the actual shared library used.
54 * Load client config and instantiate window.
56 * The client config tells us our window parameters along with which World
57 * we're going to load. The GameWindow class then loads and plays the game.
59 int main(int argc
, char** argv
)
65 if (!parseConfig(CLIENT_CONF_PATH
))
67 if (!parseCommandLine(argc
, argv
))
69 if (!conf
.validate(CLIENT_CONF_PATH
))
72 Log::setVerbosity(conf
.verbosity
);
74 // Init various libraries we use.
78 if (!window
.init(argv
[0]))