Create more features

This commit is contained in:
twinaphex 2015-04-19 18:30:49 +02:00
parent 134289c496
commit ee7ce9659b
4 changed files with 36 additions and 1 deletions

View File

@ -650,7 +650,7 @@ ifeq ($(HAVE_ZLIB), 1)
OBJ += libretro-common/file/file_extract.o
OBJ += $(ZLIB_OBJS)
DEFINES += -DHAVE_ZLIB
#HAVE_RPNG = 1
HAVE_RPNG = 1
HAVE_COMPRESSION = 1
ifeq ($(WANT_ZLIB), 1)
DEFINES += -DWANT_ZLIB

View File

@ -260,6 +260,24 @@ static const bool _python_supp = true;
static const bool _python_supp = false;
#endif
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
static const bool _cocoa_supp = true;
#else
static const bool _cocoa_supp = false;
#endif
#ifdef HAVE_RPNG
static const bool _rpng_supp = true;
#else
static const bool _rpng_supp = false;
#endif
#ifdef HAVE_CORETEXT
static const bool _coretext_supp = true;
#else
static const bool _coretext_supp = false;
#endif
#if !defined(_WIN32) && !defined(GLOBAL_CONFIG_DIR)
#if defined(__HAIKU__)
#define GLOBAL_CONFIG_DIR "/system/settings"

View File

@ -468,6 +468,16 @@ static int deferred_push_system_information(void *data, void *userdata,
"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),
"Cocoa support: %s", _cocoa_supp ? "true" : "false");
menu_list_push(list, feat_str, "",
MENU_SETTINGS_CORE_INFO_NONE, 0);
snprintf(feat_str, sizeof(feat_str),
"PNG support (RPNG): %s", _rpng_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");
@ -630,6 +640,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),
"CoreText support: %s", _coretext_supp ? "true" : "false");
menu_list_push(list, feat_str, "",
MENU_SETTINGS_CORE_INFO_NONE, 0);
snprintf(feat_str, sizeof(feat_str),
"FreeType support: %s", _freetype_supp ? "true" : "false");
menu_list_push(list, feat_str, "",

View File

@ -129,9 +129,11 @@ static void print_features(void)
_PSUPP(dynamic, "Dynamic", "Dynamic run-time loading of libretro library");
_PSUPP(ffmpeg, "FFmpeg", "On-the-fly recording of gameplay with libavcodec");
_PSUPP(freetype, "FreeType", "TTF font rendering with FreeType");
_PSUPP(coretext, "CoreText", "TTF font rendering with Apple CoreText");
_PSUPP(netplay, "Netplay", "Peer-to-peer netplay");
_PSUPP(python, "Python", "Script support in shaders");
_PSUPP(libusb, "Libusb", "Libusb support");
_PSUPP(cocoa, "Cocoa", "Cocoa UI companion support (for OSX and/or iOS).");
}
#undef _PSUPP