(General) Fix some warnings

(OSX) Add HAVE_STB_FONT
This commit is contained in:
Twinaphex 2019-04-30 11:38:47 +02:00
parent 44b83cf353
commit 1819584d74
3 changed files with 8 additions and 9 deletions

View File

@ -192,7 +192,6 @@ static config_file_t *core_info_list_iterate(
size_t info_path_base_size = PATH_MAX_LENGTH * sizeof(char);
char *info_path_base = NULL;
char *info_path = NULL;
char *substr = NULL;
config_file_t *conf = NULL;
if (!current_path)
@ -207,9 +206,11 @@ static config_file_t *core_info_list_iterate(
info_path_base_size);
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP) && !defined(_3DS) && !defined(VITA) && !defined(PS2) && !defined(HW_WUP))
substr = strrchr(info_path_base, '_');
if (substr)
*substr = '\0';
{
char *substr = strrchr(info_path_base, '_');
if (substr)
*substr = '\0';
}
#endif
strlcat(info_path_base,
@ -759,8 +760,6 @@ void core_info_get_name(const char *path, char *s, size_t len,
for (i = 0; i < contents->size; i++)
{
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
char *info_path = NULL;
config_file_t *conf = NULL;
char *new_core_name = NULL;
const char *current_path = contents->elems[i].data;

View File

@ -1732,7 +1732,7 @@ bool rarch_environment_cb(unsigned cmd, void *data)
for (i = 0; info[i].ident; i++)
{
unsigned j;
if (!log_level != RETRO_LOG_DEBUG)
if (log_level != RETRO_LOG_DEBUG)
continue;
RARCH_LOG("Special game type: %s\n", info[i].desc);

View File

@ -520,7 +520,7 @@
"-DRC_DISABLE_LUA",
"-DHAVE_IMAGEVIEWER",
"-DHAVE_IOHIDMANAGER",
"-DHAVE_CORETEXT",
"-DHAVE_STB_FONT",
"-DHAVE_RGUI",
"-DHAVE_MENU",
"-DOSX",
@ -586,7 +586,7 @@
"-DRC_DISABLE_LUA",
"-DHAVE_IMAGEVIEWER",
"-DHAVE_IOHIDMANAGER",
"-DHAVE_CORETEXT",
"-DHAVE_STB_FONT",
"-DHAVE_RGUI",
"-DHAVE_MENU",
"-DOSX",