(config.features.h) Turn static const variables into macros

This commit is contained in:
twinaphex 2019-06-13 22:34:00 +02:00
parent 6568152309
commit fa55047e2e
3 changed files with 218 additions and 219 deletions

View File

@ -9,345 +9,345 @@
#endif
#ifdef HAVE_OVERLAY
static const bool _overlay_supp = true;
#define SUPPORTS_OVERLAY true
#else
static const bool _overlay_supp = false;
#define SUPPORTS_OVERLAY false
#endif
#ifdef HAVE_V4L2
static const bool _v4l2_supp = true;
#define SUPPORTS_V4L2 true
#else
static const bool _v4l2_supp = false;
#define SUPPORTS_V4L2 false
#endif
#ifdef HAVE_COMMAND
static const bool _command_supp = true;
#define SUPPORTS_COMMAND true
#else
static const bool _command_supp = false;
#define SUPPORTS_COMMAND false
#endif
#ifdef HAVE_NETWORK_CMD
static const bool _network_command_supp = true;
#define SUPPORTS_NETWORK_COMMAND true
#else
static const bool _network_command_supp = false;
#define SUPPORTS_NETWORK_COMMAND false
#endif
#ifdef HAVE_NETWORKGAMEPAD
static const bool _network_gamepad_supp = true;
#define SUPPORTS_NETWORK_GAMEPAD true
#else
static const bool _network_gamepad_supp = false;
#define SUPPORTS_NETWORK_GAMEPAD false
#endif
#ifdef HAVE_FILTERS_BUILTIN
static const bool _cpu_filters = true;
#define SUPPORTS_CPU_FILTERS true
#else
static const bool _cpu_filters = false;
#define SUPPORTS_CPU_FILTERS false
#endif
#ifdef HAVE_LIBUSB
static const bool _libusb_supp = true;
#define SUPPORTS_LIBUSB true
#else
static const bool _libusb_supp = false;
#define SUPPORTS_LIBUSB false
#endif
#ifdef HAVE_SDL
static const bool _sdl_supp = true;
#define SUPPORTS_SDL true
#else
static const bool _sdl_supp = false;
#define SUPPORTS_SDL false
#endif
#ifdef HAVE_SDL2
static const bool _sdl2_supp = true;
#define SUPPORTS_SDL2 true
#else
static const bool _sdl2_supp = false;
#define SUPPORTS_SDL2 false
#endif
#ifdef HAVE_THREADS
static const bool _thread_supp = true;
#define SUPPORTS_THREAD true
#else
static const bool _thread_supp = false;
#define SUPPORTS_THREAD false
#endif
#ifdef HAVE_OPENGL
static const bool _opengl_supp = true;
#define SUPPORTS_OPENGL true
#else
static const bool _opengl_supp = false;
#define SUPPORTS_OPENGL false
#endif
#ifdef HAVE_VULKAN
static const bool _vulkan_supp = true;
#define SUPPORTS_VULKAN true
#else
static const bool _vulkan_supp = false;
#define SUPPORTS_VULKAN false
#endif
#ifdef HAVE_METAL
static const bool _metal_supp = true;
#define SUPPORTS_METAL true
#else
static const bool _metal_supp = false;
#define SUPPORTS_METAL false
#endif
#if defined(HAVE_OPENGLES) || defined(HAVE_OPENGLES2) || defined(HAVE_OPENGLES3) || defined(HAVE_OPENGLES_3_1) || defined(HAVE_OPENGLES_3_2)
static const bool _opengles_supp = true;
#define SUPPORTS_OPENGLES true
#else
static const bool _opengles_supp = false;
#define SUPPORTS_OPENGLES false
#endif
#ifdef HAVE_KMS
static const bool _kms_supp = true;
#define SUPPORTS_KMS true
#else
static const bool _kms_supp = false;
#define SUPPORTS_KMS false
#endif
#ifdef HAVE_UDEV
static const bool _udev_supp = true;
#define SUPPORTS_UDEV true
#else
static const bool _udev_supp = false;
#define SUPPORTS_UDEV false
#endif
#ifdef HAVE_VG
static const bool _vg_supp = true;
#define SUPPORTS_VG true
#else
static const bool _vg_supp = false;
#define SUPPORTS_VG false
#endif
#ifdef HAVE_EGL
static const bool _egl_supp = true;
#define SUPPORTS_EGL true
#else
static const bool _egl_supp = false;
#define SUPPORTS_EGL false
#endif
#ifdef HAVE_X11
static const bool _x11_supp = true;
#define SUPPORTS_X11 true
#else
static const bool _x11_supp = false;
#define SUPPORTS_X11 false
#endif
#ifdef HAVE_WAYLAND
static const bool _wayland_supp = true;
#define SUPPORTS_WAYLAND true
#else
static const bool _wayland_supp = false;
#define SUPPORTS_WAYLAND false
#endif
#ifdef HAVE_XVIDEO
static const bool _xvideo_supp = true;
#define SUPPORTS_XVIDEO true
#else
static const bool _xvideo_supp = false;
#define SUPPORTS_XVIDEO false
#endif
#ifdef HAVE_ALSA
static const bool _alsa_supp = true;
#define SUPPORTS_ALSA true
#else
static const bool _alsa_supp = false;
#define SUPPORTS_ALSA false
#endif
#ifdef HAVE_TINYALSA
static const bool _tinyalsa_supp = true;
#define SUPPORTS_TINYALSA true
#else
static const bool _tinyalsa_supp = false;
#define SUPPORTS_TINYALSA false
#endif
#ifdef HAVE_COREAUDIO
static const bool _coreaudio_supp = true;
#define SUPPORTS_COREAUDIO true
#else
static const bool _coreaudio_supp = false;
#define SUPPORTS_COREAUDIO false
#endif
#ifdef HAVE_COREAUDIO3
static const bool _coreaudio3_supp = true;
#define SUPPORTS_COREAUDIO3 true
#else
static const bool _coreaudio3_supp = false;
#define SUPPORTS_COREAUDIO3 false
#endif
#if defined(HAVE_OSS) || defined(HAVE_OSS_BSD)
static const bool _oss_supp = true;
#define SUPPORTS_OSS true
#else
static const bool _oss_supp = false;
#define SUPPORTS_OSS false
#endif
#ifdef HAVE_AL
static const bool _al_supp = true;
#define SUPPORTS_AL true
#else
static const bool _al_supp = false;
#define SUPPORTS_AL false
#endif
#ifdef HAVE_SL
static const bool _sl_supp = true;
#define SUPPORTS_SL true
#else
static const bool _sl_supp = false;
#define SUPPORTS_SL false
#endif
#ifdef HAVE_LIBRETRODB
static const bool _libretrodb_supp = true;
#define SUPPORTS_LIBRETRODB true
#else
static const bool _libretrodb_supp = false;
#define SUPPORTS_LIBRETRODB false
#endif
#ifdef HAVE_RSOUND
static const bool _rsound_supp = true;
#define SUPPORTS_RSOUND true
#else
static const bool _rsound_supp = false;
#define SUPPORTS_RSOUND false
#endif
#ifdef HAVE_ROAR
static const bool _roar_supp = true;
#define SUPPORTS_ROAR true
#else
static const bool _roar_supp = false;
#define SUPPORTS_ROAR false
#endif
#ifdef HAVE_JACK
static const bool _jack_supp = true;
#define SUPPORTS_JACK true
#else
static const bool _jack_supp = false;
#define SUPPORTS_JACK false
#endif
#ifdef HAVE_PULSE
static const bool _pulse_supp = true;
#define SUPPORTS_PULSE true
#else
static const bool _pulse_supp = false;
#define SUPPORTS_PULSE false
#endif
#ifdef HAVE_DSOUND
static const bool _dsound_supp = true;
#define SUPPORTS_DSOUND true
#else
static const bool _dsound_supp = false;
#define SUPPORTS_DSOUND false
#endif
#ifdef HAVE_WASAPI
static const bool _wasapi_supp = true;
#define SUPPORTS_WASAPI true
#else
static const bool _wasapi_supp = false;
#define SUPPORTS_WASAPI false
#endif
#ifdef HAVE_XAUDIO
static const bool _xaudio_supp = true;
#define SUPPORTS_XAUDIO true
#else
static const bool _xaudio_supp = false;
#define SUPPORTS_XAUDIO false
#endif
#ifdef HAVE_ZLIB
static const bool _zlib_supp = true;
#define SUPPORTS_ZLIB true
#else
static const bool _zlib_supp = false;
#define SUPPORTS_ZLIB false
#endif
#ifdef HAVE_7ZIP
static const bool _7zip_supp = true;
#define SUPPORTS_7ZIP true
#else
static const bool _7zip_supp = false;
#define SUPPORTS_7ZIP false
#endif
#ifdef HAVE_DYLIB
static const bool _dylib_supp = true;
#define SUPPORTS_DYLIB true
#else
static const bool _dylib_supp = false;
#define SUPPORTS_DYLIB false
#endif
#ifdef HAVE_CG
static const bool _cg_supp = true;
#define SUPPORTS_CG true
#else
static const bool _cg_supp = false;
#define SUPPORTS_CG false
#endif
#ifdef HAVE_GLSL
static const bool _glsl_supp = true;
#define SUPPORTS_GLSL true
#else
static const bool _glsl_supp = false;
#define SUPPORTS_GLSL false
#endif
#ifdef HAVE_HLSL
static const bool _hlsl_supp = true;
#define SUPPORTS_HLSL true
#else
static const bool _hlsl_supp = false;
#define SUPPORTS_HLSL false
#endif
#ifdef HAVE_SDL_IMAGE
static const bool _sdl_image_supp = true;
#define SUPPORTS_SDL_IMAGE true
#else
static const bool _sdl_image_supp = false;
#define SUPPORTS_SDL_IMAGE false
#endif
#ifdef HAVE_DYNAMIC
static const bool _dynamic_supp = true;
#define SUPPORTS_DYNAMIC true
#else
static const bool _dynamic_supp = false;
#define SUPPORTS_DYNAMIC false
#endif
#ifdef HAVE_FFMPEG
static const bool _ffmpeg_supp = true;
#define SUPPORTS_FFMPEG true
#else
static const bool _ffmpeg_supp = false;
#define SUPPORTS_FFMPEG false
#endif
#ifdef HAVE_MPV
static const bool _mpv_supp = true;
#define SUPPORTS_MPV true
#else
static const bool _mpv_supp = false;
#define SUPPORTS_MPV false
#endif
#ifdef HAVE_FREETYPE
static const bool _freetype_supp = true;
#define SUPPORTS_FREETYPE true
#else
static const bool _freetype_supp = false;
#define SUPPORTS_FREETYPE false
#endif
#ifdef HAVE_STB_FONT
static const bool _stbfont_supp = true;
#define SUPPORTS_STBFONT true
#else
static const bool _stbfont_supp = false;
#define SUPPORTS_STBFONT false
#endif
#ifdef HAVE_NETWORKING
static const bool _netplay_supp = true;
#define SUPPORTS_NETPLAY true
#else
static const bool _netplay_supp = false;
#define SUPPORTS_NETPLAY false
#endif
#ifdef HAVE_PYTHON
static const bool _python_supp = true;
#define SUPPORTS_PYTHON true
#else
static const bool _python_supp = false;
#define SUPPORTS_PYTHON false
#endif
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH) || defined(HAVE_COCOA_METAL)
static const bool _cocoa_supp = true;
#define SUPPORTS_COCOA true
#else
static const bool _cocoa_supp = false;
#define SUPPORTS_COCOA false
#endif
#ifdef HAVE_QT
static const bool _qt_supp = true;
#define SUPPORTS_QT true
#else
static const bool _qt_supp = false;
#define SUPPORTS_QT false
#endif
#ifdef HAVE_RPNG
static const bool _rpng_supp = true;
#define SUPPORTS_RPNG true
#else
static const bool _rpng_supp = false;
#define SUPPORTS_RPNG false
#endif
#ifdef HAVE_RJPEG
static const bool _rjpeg_supp = true;
#define SUPPORTS_RJPEG true
#else
static const bool _rjpeg_supp = false;
#define SUPPORTS_RJPEG false
#endif
#ifdef HAVE_RBMP
static const bool _rbmp_supp = true;
#define SUPPORTS_RBMP true
#else
static const bool _rbmp_supp = false;
#define SUPPORTS_RBMP false
#endif
#ifdef HAVE_RTGA
static const bool _rtga_supp = true;
#define SUPPORTS_RTGA true
#else
static const bool _rtga_supp = false;
#define SUPPORTS_RTGA false
#endif
#ifdef HAVE_CORETEXT
static const bool _coretext_supp = true;
#define SUPPORTS_CORETEXT true
#else
static const bool _coretext_supp = false;
#define SUPPORTS_CORETEXT false
#endif
#if !defined(_WIN32) && !defined(GLOBAL_CONFIG_DIR)

View File

@ -748,60 +748,60 @@ static unsigned menu_displaylist_parse_system_info(menu_displaylist_info_t *info
} menu_features_info_t;
menu_features_info_t info_list[] = {
{_libretrodb_supp, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBRETRODB_SUPPORT},
{_overlay_supp, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OVERLAY_SUPPORT},
{_command_supp, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COMMAND_IFACE_SUPPORT},
{_network_command_supp, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETWORK_COMMAND_IFACE_SUPPORT},
{_network_gamepad_supp, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETWORK_REMOTE_SUPPORT},
{_cocoa_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COCOA_SUPPORT},
{_rpng_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RPNG_SUPPORT},
{_rjpeg_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RJPEG_SUPPORT},
{_rbmp_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RBMP_SUPPORT},
{_rtga_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RTGA_SUPPORT},
{_sdl_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_SUPPORT},
{_sdl2_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL2_SUPPORT},
{_vulkan_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_VULKAN_SUPPORT},
{_metal_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_METAL_SUPPORT},
{_opengl_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENGL_SUPPORT},
{_opengles_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENGLES_SUPPORT},
{_thread_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_THREADING_SUPPORT},
{_kms_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_KMS_SUPPORT},
{_udev_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_UDEV_SUPPORT},
{_vg_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENVG_SUPPORT},
{_egl_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_EGL_SUPPORT},
{_x11_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_X11_SUPPORT},
{_wayland_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_WAYLAND_SUPPORT},
{_xvideo_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_XVIDEO_SUPPORT},
{_alsa_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ALSA_SUPPORT},
{_oss_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OSS_SUPPORT},
{_al_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENAL_SUPPORT},
{_sl_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENSL_SUPPORT},
{_rsound_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RSOUND_SUPPORT},
{_roar_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ROARAUDIO_SUPPORT},
{_jack_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_JACK_SUPPORT},
{_pulse_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_PULSEAUDIO_SUPPORT},
{_coreaudio_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT},
{_coreaudio3_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT},
{_dsound_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DSOUND_SUPPORT},
{_wasapi_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_WASAPI_SUPPORT},
{_xaudio_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_XAUDIO2_SUPPORT},
{_zlib_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ZLIB_SUPPORT},
{_7zip_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_7ZIP_SUPPORT},
{_dylib_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DYLIB_SUPPORT},
{_dynamic_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DYNAMIC_SUPPORT},
{_cg_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CG_SUPPORT},
{_glsl_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GLSL_SUPPORT},
{_hlsl_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_HLSL_SUPPORT},
{_sdl_image_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_IMAGE_SUPPORT},
{_ffmpeg_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FFMPEG_SUPPORT},
{_mpv_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_MPV_SUPPORT},
{_coretext_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CORETEXT_SUPPORT},
{_freetype_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FREETYPE_SUPPORT},
{_stbfont_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_STB_TRUETYPE_SUPPORT},
{_netplay_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETPLAY_SUPPORT},
{_python_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_PYTHON_SUPPORT},
{_v4l2_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_V4L2_SUPPORT},
{_libusb_supp , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBUSB_SUPPORT},
{SUPPORTS_LIBRETRODB, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBRETRODB_SUPPORT},
{SUPPORTS_OVERLAY, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OVERLAY_SUPPORT},
{SUPPORTS_COMMAND, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COMMAND_IFACE_SUPPORT},
{SUPPORTS_NETWORK_COMMAND, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETWORK_COMMAND_IFACE_SUPPORT},
{SUPPORTS_NETWORK_GAMEPAD, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETWORK_REMOTE_SUPPORT},
{SUPPORTS_COCOA , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COCOA_SUPPORT},
{SUPPORTS_RPNG , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RPNG_SUPPORT},
{SUPPORTS_RJPEG , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RJPEG_SUPPORT},
{SUPPORTS_RBMP , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RBMP_SUPPORT},
{SUPPORTS_RTGA , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RTGA_SUPPORT},
{SUPPORTS_SDL , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_SUPPORT},
{SUPPORTS_SDL2 , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL2_SUPPORT},
{SUPPORTS_VULKAN , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_VULKAN_SUPPORT},
{SUPPORTS_METAL , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_METAL_SUPPORT},
{SUPPORTS_OPENGL , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENGL_SUPPORT},
{SUPPORTS_OPENGLES , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENGLES_SUPPORT},
{SUPPORTS_THREAD , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_THREADING_SUPPORT},
{SUPPORTS_KMS , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_KMS_SUPPORT},
{SUPPORTS_UDEV , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_UDEV_SUPPORT},
{SUPPORTS_VG , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENVG_SUPPORT},
{SUPPORTS_EGL , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_EGL_SUPPORT},
{SUPPORTS_X11 , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_X11_SUPPORT},
{SUPPORTS_WAYLAND , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_WAYLAND_SUPPORT},
{SUPPORTS_XVIDEO , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_XVIDEO_SUPPORT},
{SUPPORTS_ALSA , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ALSA_SUPPORT},
{SUPPORTS_OSS , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OSS_SUPPORT},
{SUPPORTS_AL , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENAL_SUPPORT},
{SUPPORTS_SL , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENSL_SUPPORT},
{SUPPORTS_RSOUND , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RSOUND_SUPPORT},
{SUPPORTS_ROAR , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ROARAUDIO_SUPPORT},
{SUPPORTS_JACK , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_JACK_SUPPORT},
{SUPPORTS_PULSE , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_PULSEAUDIO_SUPPORT},
{SUPPORTS_COREAUDIO , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT},
{SUPPORTS_COREAUDIO3 , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT},
{SUPPORTS_DSOUND , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DSOUND_SUPPORT},
{SUPPORTS_WASAPI , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_WASAPI_SUPPORT},
{SUPPORTS_XAUDIO , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_XAUDIO2_SUPPORT},
{SUPPORTS_ZLIB , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ZLIB_SUPPORT},
{SUPPORTS_7ZIP , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_7ZIP_SUPPORT},
{SUPPORTS_DYLIB , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DYLIB_SUPPORT},
{SUPPORTS_DYNAMIC , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DYNAMIC_SUPPORT},
{SUPPORTS_CG , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CG_SUPPORT},
{SUPPORTS_GLSL , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GLSL_SUPPORT},
{SUPPORTS_HLSL , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_HLSL_SUPPORT},
{SUPPORTS_SDL_IMAGE , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_IMAGE_SUPPORT},
{SUPPORTS_FFMPEG , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FFMPEG_SUPPORT},
{SUPPORTS_MPV , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_MPV_SUPPORT},
{SUPPORTS_CORETEXT , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CORETEXT_SUPPORT},
{SUPPORTS_FREETYPE , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FREETYPE_SUPPORT},
{SUPPORTS_STBFONT , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_STB_TRUETYPE_SUPPORT},
{SUPPORTS_NETPLAY , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETPLAY_SUPPORT},
{SUPPORTS_PYTHON , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_PYTHON_SUPPORT},
{SUPPORTS_V4L2 , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_V4L2_SUPPORT},
{SUPPORTS_LIBUSB , MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBUSB_SUPPORT},
};
feat_str[0] = '\0';

View File

@ -145,7 +145,7 @@
#include "runahead/run_ahead.h"
#endif
#define _PSUPP(var, name, desc) printf(" %s:\n\t\t%s: %s\n", name, desc, _##var##_supp ? "yes" : "no")
#define _PSUPP(var, name, desc) printf(" %s:\n\t\t%s: %s\n", name, desc, var ? "yes" : "no")
#define FAIL_CPU(simd_type) do { \
RARCH_ERR(simd_type " code is compiled in, but CPU does not support this feature. Cannot continue.\n"); \
@ -992,73 +992,72 @@ static void retroarch_print_features(void)
puts("");
puts("Features:");
_PSUPP(libretrodb, "LibretroDB", "LibretroDB support");
_PSUPP(command, "Command", "Command interface support");
_PSUPP(network_command, "Network Command", "Network Command interface "
_PSUPP(SUPPORTS_LIBRETRODB, "LibretroDB", "LibretroDB support");
_PSUPP(SUPPORTS_COMMAND, "Command", "Command interface support");
_PSUPP(SUPPORTS_NETWORK_COMMAND, "Network Command", "Network Command interface "
"support");
_PSUPP(sdl, "SDL", "SDL input/audio/video drivers");
_PSUPP(sdl2, "SDL2", "SDL2 input/audio/video drivers");
_PSUPP(x11, "X11", "X11 input/video drivers");
_PSUPP(wayland, "wayland", "Wayland input/video drivers");
_PSUPP(thread, "Threads", "Threading support");
_PSUPP(SUPPORTS_SDL, "SDL", "SDL input/audio/video drivers");
_PSUPP(SUPPORTS_SDL2, "SDL2", "SDL2 input/audio/video drivers");
_PSUPP(SUPPORTS_X11, "X11", "X11 input/video drivers");
_PSUPP(SUPPORTS_WAYLAND, "wayland", "Wayland input/video drivers");
_PSUPP(SUPPORTS_THREAD, "Threads", "Threading support");
_PSUPP(vulkan, "Vulkan", "Vulkan video driver");
_PSUPP(metal, "Metal", "Metal video driver");
_PSUPP(opengl, "OpenGL", "OpenGL video driver support");
_PSUPP(opengles, "OpenGL ES", "OpenGLES video driver support");
_PSUPP(xvideo, "XVideo", "Video driver");
_PSUPP(udev, "UDEV", "UDEV/EVDEV input driver support");
_PSUPP(egl, "EGL", "Video context driver");
_PSUPP(kms, "KMS", "Video context driver");
_PSUPP(vg, "OpenVG", "Video context driver");
_PSUPP(SUPPORTS_VULKAN, "Vulkan", "Vulkan video driver");
_PSUPP(SUPPORTS_METAL, "Metal", "Metal video driver");
_PSUPP(SUPPORTS_OPENGL, "OpenGL", "OpenGL video driver support");
_PSUPP(SUPPORTS_OPENGLES, "OpenGL ES", "OpenGLES video driver support");
_PSUPP(SUPPORTS_XVIDEO, "XVideo", "Video driver");
_PSUPP(SUPPORTS_UDEV, "UDEV", "UDEV/EVDEV input driver support");
_PSUPP(SUPPORTS_EGL, "EGL", "Video context driver");
_PSUPP(SUPPORTS_KMS, "KMS", "Video context driver");
_PSUPP(SUPPORTS_VG, "OpenVG", "Video context driver");
_PSUPP(coreaudio, "CoreAudio", "Audio driver");
_PSUPP(coreaudio3, "CoreAudioV3", "Audio driver");
_PSUPP(alsa, "ALSA", "Audio driver");
_PSUPP(oss, "OSS", "Audio driver");
_PSUPP(jack, "Jack", "Audio driver");
_PSUPP(rsound, "RSound", "Audio driver");
_PSUPP(roar, "RoarAudio", "Audio driver");
_PSUPP(pulse, "PulseAudio", "Audio driver");
_PSUPP(dsound, "DirectSound", "Audio driver");
_PSUPP(wasapi, "WASAPI", "Audio driver");
_PSUPP(xaudio, "XAudio2", "Audio driver");
_PSUPP(al, "OpenAL", "Audio driver");
_PSUPP(sl, "OpenSL", "Audio driver");
_PSUPP(SUPPORTS_COREAUDIO, "CoreAudio", "Audio driver");
_PSUPP(SUPPORTS_COREAUDIO3, "CoreAudioV3", "Audio driver");
_PSUPP(SUPPORTS_ALSA, "ALSA", "Audio driver");
_PSUPP(SUPPORTS_OSS, "OSS", "Audio driver");
_PSUPP(SUPPORTS_JACK, "Jack", "Audio driver");
_PSUPP(SUPPORTS_RSOUND, "RSound", "Audio driver");
_PSUPP(SUPPORTS_ROAR, "RoarAudio", "Audio driver");
_PSUPP(SUPPORTS_PULSE, "PulseAudio", "Audio driver");
_PSUPP(SUPPORTS_DSOUND, "DirectSound", "Audio driver");
_PSUPP(SUPPORTS_WASAPI, "WASAPI", "Audio driver");
_PSUPP(SUPPORTS_XAUDIO, "XAudio2", "Audio driver");
_PSUPP(SUPPORTS_AL, "OpenAL", "Audio driver");
_PSUPP(SUPPORTS_SL, "OpenSL", "Audio driver");
_PSUPP(7zip, "7zip", "7zip extraction support");
_PSUPP(zlib, "zlib", ".zip extraction support");
_PSUPP(SUPPORTS_7ZIP, "7zip", "7zip extraction support");
_PSUPP(SUPPORTS_ZLIB, "zlib", ".zip extraction support");
_PSUPP(dylib, "External", "External filter and plugin support");
_PSUPP(SUPPORTS_DYLIB, "External", "External filter and plugin support");
_PSUPP(cg, "Cg", "Fragment/vertex shader driver");
_PSUPP(glsl, "GLSL", "Fragment/vertex shader driver");
_PSUPP(glsl, "HLSL", "Fragment/vertex shader driver");
_PSUPP(SUPPORTS_CG, "Cg", "Fragment/vertex shader driver");
_PSUPP(SUPPORTS_GLSL, "GLSL", "Fragment/vertex shader driver");
_PSUPP(SUPPORTS_HLSL, "HLSL", "Fragment/vertex shader driver");
_PSUPP(sdl_image, "SDL_image", "SDL_image image loading");
_PSUPP(rpng, "rpng", "PNG image loading/encoding");
_PSUPP(rpng, "rjpeg", "JPEG image loading");
_PSUPP(dynamic, "Dynamic", "Dynamic run-time loading of "
_PSUPP(SUPPORTS_SDL_IMAGE, "SDL_image", "SDL_image image loading");
_PSUPP(SUPPORTS_RPNG, "rpng", "PNG image loading/encoding");
_PSUPP(SUPPORTS_RJPEG, "rjpeg", "JPEG image loading");
_PSUPP(SUPPORTS_DYNAMIC, "Dynamic", "Dynamic run-time loading of "
"libretro library");
_PSUPP(ffmpeg, "FFmpeg", "On-the-fly recording of gameplay "
_PSUPP(SUPPORTS_FFMPEG, "FFmpeg", "On-the-fly recording of gameplay "
"with libavcodec");
_PSUPP(freetype, "FreeType", "TTF font rendering driver");
_PSUPP(coretext, "CoreText", "TTF font rendering driver "
_PSUPP(SUPPORTS_FREETYPE, "FreeType", "TTF font rendering driver");
_PSUPP(SUPPORTS_CORETEXT, "CoreText", "TTF font rendering driver "
"(for OSX and/or iOS)");
_PSUPP(netplay, "Netplay", "Peer-to-peer netplay");
_PSUPP(python, "Python", "Script support in shaders");
_PSUPP(SUPPORTS_NETPLAY, "Netplay", "Peer-to-peer netplay");
_PSUPP(SUPPORTS_PYTHON, "Python", "Script support in shaders");
_PSUPP(libusb, "Libusb", "Libusb support");
_PSUPP(SUPPORTS_LIBUSB, "Libusb", "Libusb support");
_PSUPP(cocoa, "Cocoa", "Cocoa UI companion support "
_PSUPP(SUPPORTS_COCOA, "Cocoa", "Cocoa UI companion support "
"(for OSX and/or iOS)");
_PSUPP(qt, "Qt", "Qt UI companion support");
_PSUPP(v4l2, "Video4Linux2", "Camera driver");
_PSUPP(SUPPORTS_QT, "Qt", "Qt UI companion support");
_PSUPP(SUPPORTS_V4L2, "Video4Linux2", "Camera driver");
}
#undef _PSUPP
static void retroarch_print_version(void)
{