(Menu) Fixes load detect for single-file ZIP

This commit is contained in:
twinaphex 2015-06-08 20:11:40 +02:00
parent 01975e9328
commit d80e5de45e
2 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,8 @@
#include "../../retroarch.h"
#include "../../input/input_autodetect.h"
extern char detect_content_path[PATH_MAX_LENGTH];
static int archive_open(void)
{
char cat_path[PATH_MAX_LENGTH];
@ -93,6 +95,9 @@ static int archive_load(void)
ret = rarch_defer_core(global->core_info, menu_path, path, menu_label,
menu->deferred_path, sizeof(menu->deferred_path));
fill_pathname_join(detect_content_path, menu_path, path,
sizeof(detect_content_path));
switch (ret)
{
case -1:

View File

@ -28,7 +28,7 @@
#include "../../input/input_remapping.h"
/* FIXME - Global variables, refactor */
static char detect_content_path[PATH_MAX_LENGTH];
char detect_content_path[PATH_MAX_LENGTH];
unsigned rdb_entry_start_game_selection_ptr;
size_t hack_shader_pass = 0;
#ifdef HAVE_NETWORKING