Browse Source

defaults: reorganize platform default overrides, disable touch for nswitch

pull/2/head
Alibek Omarov 2 years ago
parent
commit
555fd02407
  1. 41
      common/defaults.h

41
common/defaults.h

@ -158,32 +158,43 @@ Default build-depended cvar and constant values
========================================================================= =========================================================================
*/ */
#if XASH_MOBILE_PLATFORM // Platform overrides
#define DEFAULT_TOUCH_ENABLE "1" #if XASH_NSWITCH
#define DEFAULT_M_IGNORE "1"
#else // !XASH_MOBILE_PLATFORM
#define DEFAULT_TOUCH_ENABLE "0" #define DEFAULT_TOUCH_ENABLE "0"
#define DEFAULT_M_IGNORE "0" #define DEFAULT_M_IGNORE "1"
#endif // !XASH_MOBILE_PLATFORM #define DEFAULT_MODE_WIDTH 1280
#define DEFAULT_MODE_HEIGHT 720
#define DEFAULT_ALLOWCONSOLE 1
#elif XASH_MOBILE_PLATFORM
#define DEFAULT_TOUCH_ENABLE "1"
#define DEFAULT_M_IGNORE "1"
#endif // !XASH_MOBILE_PLATFORM && !XASH_NSWITCH
#if XASH_ANDROID || XASH_IOS || XASH_EMSCRIPTEN #if XASH_ANDROID || XASH_IOS || XASH_EMSCRIPTEN
#define XASH_INTERNAL_GAMELIBS // this means that libraries are provided with engine, but not in game data
// this means that libraries are provided with engine, but not in game data // You need add library loading code to library.c when adding new platform
// You need add library loading code to library.c when adding new platform #define XASH_INTERNAL_GAMELIBS
#endif // XASH_ANDROID || XASH_IOS || XASH_EMSCRIPTEN #endif // XASH_ANDROID || XASH_IOS || XASH_EMSCRIPTEN
// allow override for developer/debug builds // Defaults
#ifndef DEFAULT_TOUCH_ENABLE
#define DEFAULT_TOUCH_ENABLE "0"
#endif // DEFAULT_TOUCH_ENABLE
#ifndef DEFAULT_M_IGNORE
#define DEFAULT_M_IGNORE "0"
#endif // DEFAULT_M_IGNORE
#ifndef DEFAULT_DEV #ifndef DEFAULT_DEV
#define DEFAULT_DEV 0 #define DEFAULT_DEV 0
#endif // DEFAULT_DEV #endif // DEFAULT_DEV
#ifndef DEFAULT_ALLOWCONSOLE
#define DEFAULT_ALLOWCONSOLE 0
#endif // DEFAULT_ALLOWCONSOLE
#ifndef DEFAULT_FULLSCREEN #ifndef DEFAULT_FULLSCREEN
#define DEFAULT_FULLSCREEN 1 #define DEFAULT_FULLSCREEN 1
#endif // DEFAULT_FULLSCREEN #endif // DEFAULT_FULLSCREEN
#if XASH_NSWITCH
#define DEFAULT_MODE_WIDTH 1280
#define DEFAULT_MODE_HEIGHT 720
#endif // XASH_NSWITCH
#endif // DEFAULTS_H #endif // DEFAULTS_H

Loading…
Cancel
Save