fix Android build
This commit is contained in:
parent
af1b684c08
commit
95db562414
|
@ -36,12 +36,20 @@
|
||||||
#define CONFIG_FILE "/furnace.cfg"
|
#define CONFIG_FILE "/furnace.cfg"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef IS_MOBILE
|
||||||
|
#ifdef HAVE_SDL2
|
||||||
|
#include <SDL.h>
|
||||||
|
#else
|
||||||
|
#error "Furnace mobile requires SDL2!"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
void DivEngine::initConfDir() {
|
void DivEngine::initConfDir() {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// maybe move this function in here instead?
|
// maybe move this function in here instead?
|
||||||
configPath=getWinConfigPath();
|
configPath=getWinConfigPath();
|
||||||
#elif defined (IS_MOBILE)
|
#elif defined(IS_MOBILE)
|
||||||
configPath=SDL_GetPrefPath();
|
configPath=SDL_GetPrefPath("tildearrow","furnace");
|
||||||
#else
|
#else
|
||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
char userSettingsDir[PATH_MAX];
|
char userSettingsDir[PATH_MAX];
|
||||||
|
|
Loading…
Reference in New Issue