mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-07-07 19:45:00 +00:00
Fix TARGET_OS_IPHONE checks
This commit is contained in:
parent
65b024a9a3
commit
6ae4de1f94
5 changed files with 5 additions and 5 deletions
|
@ -178,7 +178,7 @@ bool BUTTONGLYPHS_keyboard_is_available(void)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
|
#if defined(__ANDROID__) || TARGET_OS_IPHONE
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
return !SDL_GetHintBoolean("SteamDeck", SDL_FALSE);
|
return !SDL_GetHintBoolean("SteamDeck", SDL_FALSE);
|
||||||
|
|
|
@ -1331,7 +1331,7 @@ static int PLATFORM_getOSDirectory(char* output, const size_t output_size)
|
||||||
}
|
}
|
||||||
SDL_snprintf(output, output_size, "%s/", externalStoragePath);
|
SDL_snprintf(output, output_size, "%s/", externalStoragePath);
|
||||||
return 1;
|
return 1;
|
||||||
#elif defined(TARGET_OS_IPHONE)
|
#elif TARGET_OS_IPHONE
|
||||||
// (ab)use SDL APIs to get the path to the Documents folder without needing Objective-C
|
// (ab)use SDL APIs to get the path to the Documents folder without needing Objective-C
|
||||||
const char* prefsPath = SDL_GetPrefPath("", "");
|
const char* prefsPath = SDL_GetPrefPath("", "");
|
||||||
if (prefsPath == NULL)
|
if (prefsPath == NULL)
|
||||||
|
|
|
@ -381,7 +381,7 @@ void Game::init(void)
|
||||||
screenshot_border_timer = 0;
|
screenshot_border_timer = 0;
|
||||||
screenshot_saved_success = false;
|
screenshot_saved_success = false;
|
||||||
|
|
||||||
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
|
#if defined(__ANDROID__) || TARGET_OS_IPHONE
|
||||||
checkpoint_saving = true;
|
checkpoint_saving = true;
|
||||||
#else
|
#else
|
||||||
checkpoint_saving = false;
|
checkpoint_saving = false;
|
||||||
|
|
|
@ -383,7 +383,7 @@ bool Screen::isForcedFullscreen(void)
|
||||||
* If you're working on a tenfoot-only build, add a def that always
|
* If you're working on a tenfoot-only build, add a def that always
|
||||||
* returns true!
|
* returns true!
|
||||||
*/
|
*/
|
||||||
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
|
#if defined(__ANDROID__) || TARGET_OS_IPHONE
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
return SDL_GetHintBoolean("SteamTenfoot", SDL_FALSE);
|
return SDL_GetHintBoolean("SteamTenfoot", SDL_FALSE);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
|
#if defined(__ANDROID__) || TARGET_OS_IPHONE
|
||||||
// forward to SDL logging on Android, since stdout/stderr are /dev/null
|
// forward to SDL logging on Android, since stdout/stderr are /dev/null
|
||||||
// they exist on iOS, but just get forwarded to the system log anyway, so might as well provide proper metadata
|
// they exist on iOS, but just get forwarded to the system log anyway, so might as well provide proper metadata
|
||||||
#define VLOG_USE_SDL 1
|
#define VLOG_USE_SDL 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue