mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Cleanups
This commit is contained in:
parent
2390b06755
commit
ab8f0e73b7
@ -654,6 +654,7 @@ static bool content_file_load(
|
||||
|
||||
fill_pathname_join(new_path, new_basedir,
|
||||
path_basename(path), new_path_size);
|
||||
free(new_basedir);
|
||||
|
||||
/* TODO: This may fail on very large files...
|
||||
* but copying large files is not a good idea anyway */
|
||||
@ -697,7 +698,6 @@ static bool content_file_load(
|
||||
string_list_append(content_ctx->temporary_content,
|
||||
new_path, attributes);
|
||||
|
||||
free(new_basedir);
|
||||
free(new_path);
|
||||
|
||||
used_vfs_fallback_copy = true;
|
||||
@ -741,11 +741,20 @@ static bool content_file_load(
|
||||
settings_t *settings = config_get_ptr();
|
||||
const char *content_path = content->elems[0].data;
|
||||
enum rarch_content_type type = path_is_media_type(content_path);
|
||||
bool cheevos_old_enable = settings->bools.cheevos_old_enable;
|
||||
|
||||
!settings->bools.cheevos_old_enable ? rcheevos_set_cheats() : cheevos_set_cheats();
|
||||
if (cheevos_old_enable)
|
||||
cheevos_set_cheats();
|
||||
else
|
||||
rcheevos_set_cheats();
|
||||
|
||||
if (type == RARCH_CONTENT_NONE && !string_is_empty(content_path))
|
||||
!settings->bools.cheevos_old_enable ? rcheevos_load(info) : cheevos_load(info);
|
||||
{
|
||||
if (cheevos_old_enable)
|
||||
cheevos_load(info);
|
||||
else
|
||||
rcheevos_load(info);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -30,9 +30,14 @@
|
||||
|
||||
#include "../file_path_special.h"
|
||||
#include "../playlist.h"
|
||||
|
||||
#ifdef RARCH_INTERNAL
|
||||
#ifdef HAVE_MENU
|
||||
#include "../menu/menu_thumbnail_path.h"
|
||||
#include "../menu/menu_cbs.h"
|
||||
#include "../menu/menu_driver.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef COLLECTION_SIZE
|
||||
#define COLLECTION_SIZE 99999
|
||||
@ -229,7 +234,9 @@ static void cb_task_pl_thumbnail_refresh_menu(
|
||||
retro_task_t *task, void *task_data,
|
||||
void *user_data, const char *err)
|
||||
{
|
||||
#if defined(RARCH_INTERNAL) && defined(HAVE_MENU)
|
||||
menu_driver_ctl(RARCH_MENU_CTL_REFRESH_THUMBNAIL_IMAGE, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*******************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user