mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Add more entries to System Information
This commit is contained in:
parent
3c498eb505
commit
d9f5f7c457
@ -8,6 +8,36 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
static const bool _overlay_supp = true;
|
||||
#else
|
||||
static const bool _overlay_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_V4L2
|
||||
static const bool _v4l2_supp = true;
|
||||
#else
|
||||
static const bool _v4l2_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_COMMAND
|
||||
static const bool _command_supp = true;
|
||||
#else
|
||||
static const bool _command_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NETWORK_CMD
|
||||
static const bool _network_command_supp = true;
|
||||
#else
|
||||
static const bool _network_command_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBUSB
|
||||
static const bool _libusb_supp = true;
|
||||
#else
|
||||
static const bool _libusb_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SDL
|
||||
static const bool _sdl_supp = true;
|
||||
#else
|
||||
@ -92,6 +122,18 @@ static const bool _al_supp = true;
|
||||
static const bool _al_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SL
|
||||
static const bool _sl_supp = true;
|
||||
#else
|
||||
static const bool _sl_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
static const bool _libretrodb_supp = true;
|
||||
#else
|
||||
static const bool _libretrodb_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RSOUND
|
||||
static const bool _rsound_supp = true;
|
||||
#else
|
||||
@ -134,6 +176,12 @@ static const bool _zlib_supp = true;
|
||||
static const bool _zlib_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_7ZIP
|
||||
static const bool _7zip_supp = true;
|
||||
#else
|
||||
static const bool _7zip_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DYLIB
|
||||
static const bool _dylib_supp = true;
|
||||
#else
|
||||
|
@ -410,6 +410,26 @@ static int deferred_push_system_information(void *data, void *userdata,
|
||||
{
|
||||
char feat_str[PATH_MAX_LENGTH];
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"LibretroDB support: %s", _libretrodb_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"Overlay support: %s", _overlay_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"Command interface support: %s", _command_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"Network Command interface support: %s", _network_command_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"SDL1.2 support: %s", _sdl_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
@ -481,6 +501,11 @@ static int deferred_push_system_information(void *data, void *userdata,
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"OpenSL support: %s", _sl_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"RSound support: %s", _rsound_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
@ -516,6 +541,11 @@ static int deferred_push_system_information(void *data, void *userdata,
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"7zip support: %s", _7zip_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"Dynamic library support: %s", _dylib_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
@ -570,6 +600,16 @@ static int deferred_push_system_information(void *data, void *userdata,
|
||||
"Python (script support in shaders) support: %s", _python_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"Video4Linux2 support: %s", _v4l2_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
snprintf(feat_str, sizeof(feat_str),
|
||||
"Libusb support: %s", _libusb_supp ? "true" : "false");
|
||||
menu_list_push(list, feat_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
}
|
||||
|
||||
menu_driver_populate_entries(path, label, type);
|
||||
|
@ -92,6 +92,9 @@ static void 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 support");
|
||||
_PSUPP(sdl, "SDL", "SDL drivers");
|
||||
_PSUPP(sdl2, "SDL2", "SDL2 drivers");
|
||||
_PSUPP(x11, "X11", "X11 drivers");
|
||||
@ -111,8 +114,10 @@ static void print_features(void)
|
||||
_PSUPP(pulse, "PulseAudio", "audio driver");
|
||||
_PSUPP(dsound, "DirectSound", "audio driver");
|
||||
_PSUPP(xaudio, "XAudio2", "audio driver");
|
||||
_PSUPP(7zip, "7zip", "7zip support");
|
||||
_PSUPP(zlib, "zlib", "PNG encode/decode and .zip extraction");
|
||||
_PSUPP(al, "OpenAL", "audio driver");
|
||||
_PSUPP(sl, "OpenSL", "audio driver");
|
||||
_PSUPP(dylib, "External", "External filter and plugin support");
|
||||
_PSUPP(cg, "Cg", "Cg pixel shaders");
|
||||
_PSUPP(glsl, "GLSL", "GLSL pixel shaders");
|
||||
@ -125,6 +130,7 @@ static void print_features(void)
|
||||
_PSUPP(freetype, "FreeType", "TTF font rendering with FreeType");
|
||||
_PSUPP(netplay, "Netplay", "Peer-to-peer netplay");
|
||||
_PSUPP(python, "Python", "Script support in shaders");
|
||||
_PSUPP(libusb, "Libusb", "Libusb support");
|
||||
}
|
||||
#undef _PSUPP
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user