From 58abfaa8e6a6df242b1b661405e807f259ccdb5f Mon Sep 17 00:00:00 2001 From: Xawotihs Date: Fri, 19 Nov 2010 23:38:56 +0000 Subject: [PATCH] Fixed crash on Linux introduced with the iOS patch --- projects/mtg/src/GameStateMenu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/mtg/src/GameStateMenu.cpp b/projects/mtg/src/GameStateMenu.cpp index eba513614..5e5afe4a2 100644 --- a/projects/mtg/src/GameStateMenu.cpp +++ b/projects/mtg/src/GameStateMenu.cpp @@ -278,7 +278,11 @@ int GameStateMenu::nextDirectory(const char * root, const char * file) int found = 0; if (!mDip) { +#ifdef IOS mDip = opendir(JGE_GET_RES(root).c_str()); +#else + mDip = opendir(root); +#endif //IOS } while (!found && (mDit = readdir(mDip)))