(QNX/iOS) Set default overlay directory for iOS and Blackberry QNX -

note - what to do on Android with /data/data/org.retroarch/cache/Overlays?
Can't seem to access or do anything wih this path on a Galaxy S3
This commit is contained in:
twinaphex 2013-05-25 18:07:30 +02:00
parent de7fc0fb6f
commit ce376ef7ea
3 changed files with 12 additions and 8 deletions

View File

@ -35,12 +35,6 @@ int rarch_main(int argc, char *argv[])
config_load();
if (g_settings.input.overlay[0] == '\0')
{
RARCH_LOG("Setting default overlay %s ...\n", "app/native/overlays/snes-landscape.cfg");
strlcpy(g_settings.input.overlay, "app/native/overlays/snes-landscape.cfg", sizeof(g_settings.input.overlay));
}
g_extern.verbose = true;
menu_init();

View File

@ -62,7 +62,7 @@
#endif
// Wii and PSL1GHT - for usleep (among others)
#if defined(GEKKO) || defined(__PSL1GHT__) || defined(__BLACKBERRY_QNX__)
#if defined(GEKKO) || defined(__PSL1GHT__) || defined(__QNX__)
#include <unistd.h>
#endif
@ -790,7 +790,7 @@ static inline void rarch_sleep(unsigned msec)
Sleep(msec);
#elif defined(XENON)
udelay(1000 * msec);
#elif defined(GEKKO) || defined(__PSL1GHT__) || defined(__BLACKBERRY_QNX__)
#elif defined(GEKKO) || defined(__PSL1GHT__) || defined(__QNX__)
usleep(1000 * msec);
#else
struct timespec tv = {0};

View File

@ -290,6 +290,16 @@ void config_set_defaults(void)
#ifdef _XBOX1
g_extern.console.sound.volume_level = 0;
#endif
#endif
#ifdef HAVE_OVERLAY
#if defined(__QNX__)
strlcpy(g_extern.overlay_dir, "app/native/overlays/", sizeof(g_extern.overlay_dir));
RARCH_LOG("Setting default overlay %s ...\n", "app/native/overlays/snes-landscape.cfg");
strlcpy(g_settings.input.overlay, "app/native/overlays/snes-landscape.cfg", sizeof(g_settings.input.overlay));
#elif defined(IOS)
strlcpy(g_extern.overlay_dir, "/Applications/RetroArch.app/overlays/", sizeof(g_extern.overlay_dir));
#endif
#endif
g_extern.config_save_on_exit = config_save_on_exit;