mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
find the core from core_info
This commit is contained in:
parent
a0e6a24f38
commit
fc68abebdd
@ -32,6 +32,7 @@
|
|||||||
#include "../configuration.h"
|
#include "../configuration.h"
|
||||||
#include "../playlist.h"
|
#include "../playlist.h"
|
||||||
#include "../command.h"
|
#include "../command.h"
|
||||||
|
#include "../core_info.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@ -47,13 +48,24 @@ static void netplay_crc_scan_callback(void *task_data,
|
|||||||
void *user_data, const char *error)
|
void *user_data, const char *error)
|
||||||
{
|
{
|
||||||
netplay_crc_handle_t *state = (netplay_crc_handle_t*)task_data;
|
netplay_crc_handle_t *state = (netplay_crc_handle_t*)task_data;
|
||||||
|
core_info_list_t *info = NULL;
|
||||||
|
int i;
|
||||||
|
core_info_get_list(&info);
|
||||||
|
|
||||||
if (!state)
|
if (!state)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
printf("%s\n", state->hostname);
|
for (i=0; i < info->count; i++)
|
||||||
printf("%s\n", state->path);
|
{
|
||||||
printf("%s\n", state->corename);
|
if(string_is_equal(info->list[i].core_name, state->corename))
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
printf("Hostname: %s\n", state->hostname);
|
||||||
|
printf("Content: %s\n", state->path);
|
||||||
|
printf("Corename: %s\n", state->corename);
|
||||||
|
printf("Corepath: %s\n", info->list[i].path);
|
||||||
|
|
||||||
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED, state->hostname);
|
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED, state->hostname);
|
||||||
|
|
||||||
free(state);
|
free(state);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user