mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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++
|
//Get core DropDown reference to populate it in C++
|
||||||
coreSelection = mAppPane->findChild<DropDown*>("dropdown_core");
|
coreSelection = mAppPane->findChild<DropDown*>("dropdown_core");
|
||||||
connect(coreSelection, SIGNAL(selectedValueChanged(QVariant)), this, SLOT(onCoreSelected(QVariant)));
|
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);
|
populateCores(core_info_list);
|
||||||
|
|
||||||
Application::instance()->setScene(mAppPane);
|
Application::instance()->setScene(mAppPane);
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
core_info_list_t *get_core_info_list(void)
|
core_info_list_t *get_core_info_list(const char *modules_path)
|
||||||
{
|
{
|
||||||
DIR *dirp;
|
DIR *dirp;
|
||||||
struct dirent* direntp;
|
struct dirent* direntp;
|
||||||
@ -74,7 +74,7 @@ core_info_list_t *get_core_info_list(void)
|
|||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
char info_path[255];
|
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);
|
strncat(info_path, core_info[i].path, sizeof(info_path)-strlen(info_path)-1);
|
||||||
char *substr = strrchr(info_path, '_');
|
char *substr = strrchr(info_path, '_');
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ typedef struct {
|
|||||||
int count;
|
int count;
|
||||||
} core_info_list_t;
|
} 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);
|
void free_core_info_list(core_info_list_t * core_info_list);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user