mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 17:54:04 +00:00
(RARCH_CONSOLE) Include rgui->libretro_dir for RARCH_CONSOLE
- Get rid of 'bypasses initialization of' warnings/errors
This commit is contained in:
parent
30af7fb0fc
commit
85d18b77d8
@ -27,6 +27,7 @@
|
||||
core_info_list_t *core_info_list_new(const char *modules_path)
|
||||
{
|
||||
struct string_list *contents = dir_list_new(modules_path, EXT_EXECUTABLES, false);
|
||||
size_t all_ext_len;
|
||||
|
||||
core_info_t *core_info = NULL;
|
||||
core_info_list_t *core_info_list = NULL;
|
||||
@ -78,7 +79,7 @@ core_info_list_t *core_info_list_new(const char *modules_path)
|
||||
core_info[i].display_name = strdup(path_basename(core_info[i].path));
|
||||
}
|
||||
|
||||
size_t all_ext_len = 0;
|
||||
all_ext_len = 0;
|
||||
for (size_t i = 0; i < core_info_list->count; i++)
|
||||
{
|
||||
all_ext_len += core_info_list->list[i].supported_extensions ?
|
||||
|
@ -199,18 +199,21 @@ static bool zip_extract_cb(const char *name, const uint8_t *cdata, unsigned cmod
|
||||
|
||||
bool zlib_extract_first_rom(char *zip_path, size_t zip_path_size, const char *valid_exts)
|
||||
{
|
||||
bool ret;
|
||||
struct zip_extract_userdata userdata = {0};
|
||||
struct string_list *list;
|
||||
|
||||
if (!valid_exts)
|
||||
{
|
||||
RARCH_ERR("Libretro implementation does not have any valid extensions. Cannot unzip without knowing this.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ret = true;
|
||||
struct string_list *list = string_split(valid_exts, "|");
|
||||
ret = true;
|
||||
list = string_split(valid_exts, "|");
|
||||
if (!list)
|
||||
GOTO_END_ERROR();
|
||||
|
||||
struct zip_extract_userdata userdata = {0};
|
||||
userdata.zip_path = zip_path;
|
||||
userdata.zip_path_size = zip_path_size;
|
||||
userdata.ext = list;
|
||||
|
@ -310,9 +310,7 @@ typedef struct
|
||||
const uint8_t *font;
|
||||
bool alloc_font;
|
||||
|
||||
#ifdef HAVE_DYNAMIC
|
||||
char libretro_dir[PATH_MAX];
|
||||
#endif
|
||||
struct retro_system_info info;
|
||||
bool load_no_rom;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user