summaryrefslogtreecommitdiff
path: root/src/skel/crossplatform.cpp
diff options
context:
space:
mode:
authorAdrian Graber <adrian@adriangraber.com>2021-07-05 20:02:44 +0200
committerAdrian Graber <adrian@adriangraber.com>2021-07-13 00:50:49 +0200
commitca5d3c881133d1fb3c2d9af16de81b63304bc88f (patch)
treeaf569cf2d15c508cbdbd700bcd35ad3aa82da851 /src/skel/crossplatform.cpp
parent02ec56e8f70ab0fda5092d3455f76dcbb8825cff (diff)
Replace GTA_SWITCH macro and use GAMEPAD_MENU
* Replace GTA_SWITCH macro with __SWITCH__ for platform specific stuff and GTA_HANDHELD for the rest (which could be used by other ports) * Use GAMEPAD_MENU on GTA_HANDHELD, which will replace the usual controller setup (which contains some useless features for handhelds) * Fix some identation inconsistencies * Disable PC_PLAYER_CONTROLS on GTA_HANDHELD builds
Diffstat (limited to 'src/skel/crossplatform.cpp')
-rw-r--r--src/skel/crossplatform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/skel/crossplatform.cpp b/src/skel/crossplatform.cpp
index 758125e9..e69c22e1 100644
--- a/src/skel/crossplatform.cpp
+++ b/src/skel/crossplatform.cpp
@@ -200,7 +200,7 @@ char* casepath(char const* path, bool checkPathFirst)
DIR* d;
char* c;
- #if defined(GTA_SWITCH) || defined(GTA_VITA)
+ #if defined(__SWITCH__) || defined(PSP2)
if( (c = strstr(p, ":/")) != NULL) // scheme used by some environments, eg. switch, vita
{
size_t deviceNameOffset = c - p + 3;
@@ -294,7 +294,7 @@ char* casepath(char const* path, bool checkPathFirst)
}
#endif
-#ifdef GTA_SWITCH
+#ifdef __SWITCH__
/* Taken from glibc */
char *realpath(const char *name, char *resolved)
{