mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Make rarch_playlist_push more useful
This commit is contained in:
parent
925d873d91
commit
65bc796011
@ -233,7 +233,10 @@ returntype main_entry(signature())
|
|||||||
#if defined(RARCH_CONSOLE) || defined(RARCH_MOBILE)
|
#if defined(RARCH_CONSOLE) || defined(RARCH_MOBILE)
|
||||||
if (ret)
|
if (ret)
|
||||||
#endif
|
#endif
|
||||||
rarch_playlist_push(g_defaults.history, g_extern.fullpath);
|
rarch_playlist_push(g_defaults.history,
|
||||||
|
g_extern.fullpath,
|
||||||
|
g_settings.libretro,
|
||||||
|
&g_extern.system.info);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_MAIN_LOOP)
|
#if defined(HAVE_MAIN_LOOP)
|
||||||
|
@ -91,10 +91,10 @@ bool load_menu_content(void)
|
|||||||
msg_queue_push(g_extern.msg_queue, str, 1, 1);
|
msg_queue_push(g_extern.msg_queue, str, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
content_playlist_push(g_defaults.history,
|
rarch_playlist_push(g_defaults.history,
|
||||||
g_extern.fullpath,
|
g_extern.fullpath,
|
||||||
g_settings.libretro,
|
g_settings.libretro,
|
||||||
g_extern.menu.info.library_name);
|
&g_extern.menu.info);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* redraw menu frame */
|
/* redraw menu frame */
|
||||||
|
@ -18,11 +18,12 @@
|
|||||||
#include "general.h"
|
#include "general.h"
|
||||||
|
|
||||||
void rarch_playlist_push(content_playlist_t *playlist,
|
void rarch_playlist_push(content_playlist_t *playlist,
|
||||||
const char *path)
|
const char *path, const char *core_path,
|
||||||
|
struct retro_system_info *info)
|
||||||
{
|
{
|
||||||
char tmp[PATH_MAX];
|
char tmp[PATH_MAX];
|
||||||
|
|
||||||
if (!playlist || !g_extern.libretro_dummy)
|
if (!playlist || !g_extern.libretro_dummy || !info)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* path can be relative here.
|
/* path can be relative here.
|
||||||
@ -36,8 +37,8 @@ void rarch_playlist_push(content_playlist_t *playlist,
|
|||||||
if (g_extern.system.no_content || *tmp)
|
if (g_extern.system.no_content || *tmp)
|
||||||
content_playlist_push(playlist,
|
content_playlist_push(playlist,
|
||||||
*tmp ? tmp : NULL,
|
*tmp ? tmp : NULL,
|
||||||
g_settings.libretro,
|
core_path,
|
||||||
g_extern.system.info.library_name);
|
info->library_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rarch_playlist_load_content(content_playlist_t *playlist,
|
void rarch_playlist_load_content(content_playlist_t *playlist,
|
||||||
|
@ -828,7 +828,8 @@ void rarch_disk_control_set_index(unsigned index);
|
|||||||
void rarch_disk_control_append_image(const char *path);
|
void rarch_disk_control_append_image(const char *path);
|
||||||
|
|
||||||
void rarch_playlist_push(content_playlist_t *playlist,
|
void rarch_playlist_push(content_playlist_t *playlist,
|
||||||
const char *path);
|
const char *path, const char *core_path,
|
||||||
|
struct retro_system_info *info);
|
||||||
|
|
||||||
void rarch_playlist_load_content(content_playlist_t *playlist,
|
void rarch_playlist_load_content(content_playlist_t *playlist,
|
||||||
unsigned index);
|
unsigned index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user