#include <set>
#include <stdio.h>
#include <string.h>
-#include <zlib.h>
using namespace Game;
#ifdef WIN32
#include <shellapi.h>
#include <windows.h>
+#else
+#include <unistd.h>
#endif
extern float multiplier;
*ptr = '\0';
}
#endif
- chdir(dir);
+ errno = 0;
+ if (chdir(dir) != 0) {
+ printf("Error changing dir to '%s' (%s).\n", dir, strerror(errno));
+ }
free(dir);
}
}