general: renamed rpcname to systemid

This commit is contained in:
Jesse Bryan 2018-08-21 09:41:16 -05:00
parent c276f9349a
commit f6a0b09e7d
3 changed files with 7 additions and 7 deletions

View File

@ -149,7 +149,7 @@ static void core_info_list_free(core_info_list_t *core_info_list)
free(info->path);
free(info->core_name);
free(info->systemname);
free(info->rpc_name);
free(info->system_id);
free(info->system_manufacturer);
free(info->display_name);
free(info->display_version);
@ -303,10 +303,10 @@ static core_info_list_t *core_info_list_new(const char *path,
tmp = NULL;
}
if (config_get_string(conf, "rpcname", &tmp)
if (config_get_string(conf, "systemid", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].rpc_name = strdup(tmp);
core_info[i].system_id = strdup(tmp);
free(tmp);
tmp = NULL;
}

View File

@ -47,7 +47,7 @@ typedef struct
char *core_name;
char *system_manufacturer;
char *systemname;
char *rpc_name;
char *system_id;
char *supported_extensions;
char *authors;
char *permissions;

View File

@ -115,7 +115,7 @@ void discord_update(enum discord_presence presence)
case DISCORD_PRESENCE_GAME:
if (core_info)
{
const char *rpc_name = core_info->rpc_name ? core_info->rpc_name : "core";
const char *system_id = core_info->system_id ? core_info->system_id : "core";
char *label = NULL;
playlist_t *current_playlist = playlist_get_cached();
@ -127,10 +127,10 @@ void discord_update(enum discord_presence presence)
if (!label)
label = (char *)path_basename(path_get(RARCH_PATH_BASENAME));
#if 1
RARCH_LOG("[Discord] current core: %s\n", rpc_name);
RARCH_LOG("[Discord] current core: %s\n", system_id);
RARCH_LOG("[Discord] current content: %s\n", label);
#endif
discord_presence.largeImageKey = rpc_name;
discord_presence.largeImageKey = system_id;
if (core_info->display_name)
discord_presence.largeImageText = core_info->display_name;