mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Turn global->path.fullpath into static variable
This commit is contained in:
parent
7114442189
commit
d3ac25ae3e
@ -59,6 +59,7 @@
|
|||||||
|
|
||||||
static struct global g_extern;
|
static struct global g_extern;
|
||||||
|
|
||||||
|
static char runloop_fullpath[PATH_MAX_LENGTH];
|
||||||
static bool runloop_perfcnt_enable;
|
static bool runloop_perfcnt_enable;
|
||||||
static bool main_exec;
|
static bool main_exec;
|
||||||
static bool main_core_shutdown_initiated;
|
static bool main_core_shutdown_initiated;
|
||||||
@ -397,14 +398,14 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case RUNLOOP_CTL_CLEAR_CONTENT_PATH:
|
case RUNLOOP_CTL_CLEAR_CONTENT_PATH:
|
||||||
*global->path.fullpath = '\0';
|
*runloop_fullpath = '\0';
|
||||||
break;
|
break;
|
||||||
case RUNLOOP_CTL_GET_CONTENT_PATH:
|
case RUNLOOP_CTL_GET_CONTENT_PATH:
|
||||||
{
|
{
|
||||||
char **fullpath = (char**)data;
|
char **fullpath = (char**)data;
|
||||||
if (!fullpath)
|
if (!fullpath)
|
||||||
return false;
|
return false;
|
||||||
*fullpath = (char*)global->path.fullpath;
|
*fullpath = (char*)runloop_fullpath;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case RUNLOOP_CTL_SET_CONTENT_PATH:
|
case RUNLOOP_CTL_SET_CONTENT_PATH:
|
||||||
@ -412,7 +413,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
|||||||
const char *fullpath = (const char*)data;
|
const char *fullpath = (const char*)data;
|
||||||
if (!fullpath)
|
if (!fullpath)
|
||||||
return false;
|
return false;
|
||||||
strlcpy(global->path.fullpath, fullpath, sizeof(global->path.fullpath));
|
strlcpy(runloop_fullpath, fullpath, sizeof(runloop_fullpath));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case RUNLOOP_CTL_CHECK_IDLE_STATE:
|
case RUNLOOP_CTL_CHECK_IDLE_STATE:
|
||||||
@ -641,6 +642,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
|||||||
event_command(EVENT_CMD_LOG_FILE_DEINIT);
|
event_command(EVENT_CMD_LOG_FILE_DEINIT);
|
||||||
|
|
||||||
rarch_ctl(RARCH_CTL_UNSET_BLOCK_CONFIG_READ, NULL);
|
rarch_ctl(RARCH_CTL_UNSET_BLOCK_CONFIG_READ, NULL);
|
||||||
|
runloop_ctl(RUNLOOP_CTL_CLEAR_CONTENT_PATH, NULL);
|
||||||
memset(&g_extern, 0, sizeof(g_extern));
|
memset(&g_extern, 0, sizeof(g_extern));
|
||||||
break;
|
break;
|
||||||
case RUNLOOP_CTL_CLEAR_STATE:
|
case RUNLOOP_CTL_CLEAR_STATE:
|
||||||
|
@ -109,7 +109,6 @@ typedef struct rarch_path
|
|||||||
#ifdef HAVE_FILE_LOGGER
|
#ifdef HAVE_FILE_LOGGER
|
||||||
char default_log[PATH_MAX_LENGTH];
|
char default_log[PATH_MAX_LENGTH];
|
||||||
#endif
|
#endif
|
||||||
char fullpath[PATH_MAX_LENGTH];
|
|
||||||
/* Config file associated with per-core configs. */
|
/* Config file associated with per-core configs. */
|
||||||
char core_specific_config[PATH_MAX_LENGTH];
|
char core_specific_config[PATH_MAX_LENGTH];
|
||||||
} rarch_path_t;
|
} rarch_path_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user