/*
Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
+Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
#include "Audio/openal_wrapper.hpp"
#include "Graphic/gamegl.hpp"
-#include "MacCompatibility.hpp"
+#include "Platform/Platform.hpp"
#include "User/Settings.hpp"
#include "Version.hpp"
#include <set>
#include <stdio.h>
#include <string.h>
-#include <zlib.h>
using namespace Game;
#ifdef WIN32
-#include "win-res/resource.hpp"
#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);
}
}