diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 82f669d7..256b2943 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -114,10 +114,6 @@ class InitWarningListener : public gcn::ActionListener { */ 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: " << @@ -324,9 +320,15 @@ void exit_engine() /** Main */ int main(int argc, char *argv[]) { - init_engine(); + // Initialize libxml2 and check for potential ABI mismatches between + // compiled version and the shared library actually used. + LIBXML_TEST_VERSION; + + // Initialize PhysicsFS PHYSFS_init(argv[0]); + init_engine(); + SDL_Event event; while (state != EXIT) |