summaryrefslogtreecommitdiffstats
path: root/src/core/config.h
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-08-16 19:02:40 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2021-08-16 19:02:40 +0200
commit8641e9d0bb123580a7a8b701a72c1a813503bc9a (patch)
treebe236ef46d2f585da1c266597637151fc80ae55d /src/core/config.h
parentFix ped comments playing at full volume behind the wall (diff)
parentUse svcGetInfo definitions from libnx (diff)
downloadre3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.gz
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.bz2
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.lz
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.xz
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.zst
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.zip
Diffstat (limited to 'src/core/config.h')
-rw-r--r--src/core/config.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/core/config.h b/src/core/config.h
index 1e9bf6d2..d26f9546 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -157,6 +157,11 @@ enum Config {
#define GTA_VERSION GTA3_PC_11
+// Enable configuration for handheld console ports
+#if defined(__SWITCH__) || defined(PSP2)
+ #define GTA_HANDHELD
+#endif
+
#if defined GTA_PS2
# define GTA_PS2_STUFF
# define RANDOMSPLASH
@@ -166,7 +171,9 @@ enum Config {
# define PS2_MENU
#elif defined GTA_PC
# define EXTERNAL_3D_SOUND
-# define PC_PLAYER_CONTROLS // mouse player/cam mode
+# ifndef GTA_HANDHELD
+# define PC_PLAYER_CONTROLS // mouse player/cam mode
+# endif
# define GTA_REPLAY
# define GTA_SCENE_EDIT
# define PC_MENU
@@ -322,7 +329,7 @@ enum Config {
#if !defined(RW_GL3) && defined(_WIN32)
#define XINPUT
#endif
-#if defined XINPUT || (defined RW_GL3 && !defined LIBRW_SDL2 && !defined __SWITCH__)
+#if defined XINPUT || (defined RW_GL3 && !defined LIBRW_SDL2 && !defined GTA_HANDHELD)
#define DETECT_JOYSTICK_MENU // Then we'll expect user to enter Controller->Detect joysticks if his joystick isn't detected at the start.
#endif
#define DETECT_PAD_INPUT_SWITCH // Adds automatic switch of pad related stuff between controller and kb/m
@@ -348,7 +355,7 @@ enum Config {
//# define PS2_MENU_USEALLPAGEICONS
#else
-# ifdef XINPUT
+# if defined(XINPUT) || defined(GTA_HANDHELD)
# define GAMEPAD_MENU // Add gamepad menu
# endif
@@ -467,6 +474,14 @@ enum Config {
#undef PEDS_REPORT_CRIMES_ON_PHONE
#endif
+#ifdef GTA_HANDHELD
+ #define IGNORE_MOUSE_KEYBOARD // ignore mouse & keyboard input
+#endif
+
+#ifdef __SWITCH__
+ #define USE_UNNAMED_SEM // named semaphores are unsupported on the switch
+#endif
+
#endif // VANILLA_DEFINES
#if defined(AUDIO_OAL) && !defined(EXTERNAL_3D_SOUND)