fix Android build

This commit is contained in:
tildearrow 2022-08-30 16:28:05 -05:00
parent af1b684c08
commit 95db562414
1 changed files with 10 additions and 2 deletions

View File

@ -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];