mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
(task_content.c) Minor cleanup
This commit is contained in:
parent
3c6490d828
commit
02bf41a686
@ -885,15 +885,12 @@ static bool task_load_content(content_ctx_info_t *content_info,
|
|||||||
if (is_inited || contentless)
|
if (is_inited || contentless)
|
||||||
{
|
{
|
||||||
char *tmp = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
|
char *tmp = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
|
||||||
struct retro_system_info *info = NULL;
|
|
||||||
rarch_system_info_t *sys_info = runloop_get_system_info();
|
rarch_system_info_t *sys_info = runloop_get_system_info();
|
||||||
const char *path_content = path_get(RARCH_PATH_CONTENT);
|
const char *path_content = path_get(RARCH_PATH_CONTENT);
|
||||||
|
struct retro_system_info *info = sys_info ? &sys_info->info : NULL;
|
||||||
|
|
||||||
tmp[0] = '\0';
|
tmp[0] = '\0';
|
||||||
|
|
||||||
if (sys_info)
|
|
||||||
info = &sys_info->info;
|
|
||||||
|
|
||||||
if (!string_is_empty(path_content))
|
if (!string_is_empty(path_content))
|
||||||
strlcpy(tmp, path_content, PATH_MAX_LENGTH * sizeof(char));
|
strlcpy(tmp, path_content, PATH_MAX_LENGTH * sizeof(char));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user