mirror of
https://github.com/w23/xash3d-fwgs
synced 2025-01-07 09:26:01 +01:00
backends: add XASH_MESSAGEBOX to specify messagebox platform implementation
This commit is contained in:
parent
4d5e7c0557
commit
7f1dd248c2
@ -47,4 +47,10 @@ GNU General Public License for more details.
|
|||||||
#define TIMER_LINUX 2
|
#define TIMER_LINUX 2
|
||||||
#define TIMER_WIN32 3
|
#define TIMER_WIN32 3
|
||||||
|
|
||||||
|
// messageboxes (XASH_MESSAGEBOX)
|
||||||
|
#define MSGBOX_STDERR 0
|
||||||
|
#define MSGBOX_SDL 1
|
||||||
|
#define MSGBOX_ANDROID 2
|
||||||
|
#define MSGBOX_WIN32 3
|
||||||
|
|
||||||
#endif /* BACKENDS_H */
|
#endif /* BACKENDS_H */
|
||||||
|
@ -31,10 +31,18 @@ SETUP BACKENDS DEFINITIONS
|
|||||||
#ifndef XASH_TIMER
|
#ifndef XASH_TIMER
|
||||||
#define XASH_TIMER TIMER_SDL
|
#define XASH_TIMER TIMER_SDL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef XASH_MESSAGEBOX
|
||||||
|
#define XASH_MESSAGEBOX MSGBOX_SDL
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifndef XASH_TIMER
|
#ifndef XASH_TIMER
|
||||||
#define XASH_TIMER TIMER_LINUX
|
#define XASH_TIMER TIMER_LINUX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef XASH_MESSAGEBOX
|
||||||
|
#define XASH_MESSAGEBOX MSGBOX_STDERR
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XASH_SDL
|
#ifdef XASH_SDL
|
||||||
@ -70,6 +78,10 @@ SETUP BACKENDS DEFINITIONS
|
|||||||
#ifndef XASH_SOUND
|
#ifndef XASH_SOUND
|
||||||
#define XASH_SOUND SOUND_OPENSLES
|
#define XASH_SOUND SOUND_OPENSLES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef XASH_MESSAGEBOX
|
||||||
|
#define XASH_MESSAGEBOX MSGBOX_ANDROID
|
||||||
|
#endif
|
||||||
#endif // android case
|
#endif // android case
|
||||||
|
|
||||||
#ifdef XASH_FBDEV
|
#ifdef XASH_FBDEV
|
||||||
@ -88,6 +100,10 @@ SETUP BACKENDS DEFINITIONS
|
|||||||
#ifndef XASH_SOUND
|
#ifndef XASH_SOUND
|
||||||
#define XASH_SOUND SOUND_ALSA
|
#define XASH_SOUND SOUND_ALSA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef XASH_MESSAGEBOX
|
||||||
|
#define XASH_MESSAGEBOX MSGBOX_STDERR
|
||||||
|
#endif
|
||||||
#define XASH_USE_EVDEV
|
#define XASH_USE_EVDEV
|
||||||
#endif // android case
|
#endif // android case
|
||||||
|
|
||||||
@ -130,6 +146,10 @@ SETUP BACKENDS DEFINITIONS
|
|||||||
#define XASH_INPUT INPUT_NULL
|
#define XASH_INPUT INPUT_NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef XASH_MESSAGEBOX
|
||||||
|
#define XASH_MESSAGEBOX MSGBOX_STDERR
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=========================================================================
|
=========================================================================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user