summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-19 13:07:08 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-19 13:07:08 +0000
commit919d5a60b08bb39114d73295c59290a6c3402a76 (patch)
treeb3173d271d30cfbf69c324b14daf94286219fa68 /src/main.cpp
parent360b1d4d6ca420ae98f87af166d739b34f05de22 (diff)
downloadmana-919d5a60b08bb39114d73295c59290a6c3402a76.tar.gz
mana-919d5a60b08bb39114d73295c59290a6c3402a76.tar.bz2
mana-919d5a60b08bb39114d73295c59290a6c3402a76.tar.xz
mana-919d5a60b08bb39114d73295c59290a6c3402a76.zip
Fixed searching for zip files in Linux, fixed initialization of PhysFS to be
before it is used and added a start on the map reader.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
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)