summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-13 19:26:23 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-13 19:26:23 +0000
commit0e741d32b8d6daa2914a35efed1c742ad880525a (patch)
tree7638b4f6d171ddd45d3ebc88f0d24a43aa2b86e7 /src/main.cpp
parentf3d3020c77e5b54601fe8fda9c61ab3d4e5cf1bd (diff)
downloadmana-0e741d32b8d6daa2914a35efed1c742ad880525a.tar.gz
mana-0e741d32b8d6daa2914a35efed1c742ad880525a.tar.bz2
mana-0e741d32b8d6daa2914a35efed1c742ad880525a.tar.xz
mana-0e741d32b8d6daa2914a35efed1c742ad880525a.zip
Done some work on autoconf usage and removed Arial font.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 99458bad..243c0d01 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -29,9 +29,11 @@
#include "./sound/sound.h"
#include "./graphic/graphic.h"
#include "resources/resourcemanager.h"
+
#include <iostream>
#include <guichan.hpp>
#include <SDL.h>
+#include <libxml/xmlversion.h>
#ifdef __USE_UNIX98
#include <sys/stat.h>
@@ -58,7 +60,6 @@ char map_name[16];
unsigned char state;
unsigned short x, y;
unsigned char direction;
-//unsigned short job, hair, hair_color;
unsigned char screen_mode;
char *dir;
@@ -97,7 +98,12 @@ void request_exit() {
/**
* Do all initialization stuff
*/
-void init_engine() {
+void init_engine()
+{
+ // Initialize libxml2 and check for potential ABI mismatches between
+ // compiled version and the shared library actually used.
+ LIBXML_TEST_VERSION
+
// Initialize SDL
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0) {
std::cerr << "Could not initialize SDL: " <<