mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
Pass parameter to get_core_info_list function
This commit is contained in:
parent
bbfca6476c
commit
6d87281f36
@ -87,7 +87,7 @@ RetroArch::RetroArch()
|
||||
//Get core DropDown reference to populate it in C++
|
||||
coreSelection = mAppPane->findChild<DropDown*>("dropdown_core");
|
||||
connect(coreSelection, SIGNAL(selectedValueChanged(QVariant)), this, SLOT(onCoreSelected(QVariant)));
|
||||
core_info_list = get_core_info_list();
|
||||
core_info_list = get_core_info_list("/app/native/modules/");
|
||||
populateCores(core_info_list);
|
||||
|
||||
Application::instance()->setScene(mAppPane);
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
|
||||
core_info_list_t *get_core_info_list(void)
|
||||
core_info_list_t *get_core_info_list(const char *modules_path)
|
||||
{
|
||||
DIR *dirp;
|
||||
struct dirent* direntp;
|
||||
@ -74,7 +74,7 @@ core_info_list_t *get_core_info_list(void)
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
char info_path[255];
|
||||
snprintf(info_path, sizeof(info_path), "app/native/modules/");
|
||||
snprintf(info_path, sizeof(info_path), modules_path);
|
||||
strncat(info_path, core_info[i].path, sizeof(info_path)-strlen(info_path)-1);
|
||||
char *substr = strrchr(info_path, '_');
|
||||
|
||||
|
@ -35,7 +35,7 @@ typedef struct {
|
||||
int count;
|
||||
} core_info_list_t;
|
||||
|
||||
core_info_list_t *get_core_info_list(void);
|
||||
core_info_list_t *get_core_info_list(const char *modules_path);
|
||||
void free_core_info_list(core_info_list_t * core_info_list);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
x
Reference in New Issue
Block a user