mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
commit
d85db4e759
14
command.c
14
command.c
@ -1102,7 +1102,7 @@ static void command_event_load_auto_state(void)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CHEEVOS
|
||||
if (settings->bools.cheevos_hardcore_mode_enable)
|
||||
if (cheevos_loaded && settings->bools.cheevos_hardcore_mode_enable)
|
||||
goto error;
|
||||
#endif
|
||||
|
||||
@ -1356,7 +1356,7 @@ static bool command_event_save_auto_state(void)
|
||||
goto error;
|
||||
|
||||
#ifdef HAVE_CHEEVOS
|
||||
if (settings->bools.cheevos_hardcore_mode_enable)
|
||||
if (cheevos_loaded && settings->bools.cheevos_hardcore_mode_enable)
|
||||
goto error;
|
||||
#endif
|
||||
|
||||
@ -1805,7 +1805,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
case CMD_EVENT_LOAD_CORE_PERSIST:
|
||||
{
|
||||
#ifdef HAVE_MENU
|
||||
path_clear_all();
|
||||
path_clear(RARCH_PATH_BASENAME);
|
||||
core_info_ctx_find_t info_find;
|
||||
rarch_system_info_t *system_info = runloop_get_system_info();
|
||||
struct retro_system_info *system = &system_info->info;
|
||||
@ -1846,7 +1846,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
#ifdef HAVE_CHEEVOS
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
if (settings->bools.cheevos_hardcore_mode_enable)
|
||||
if (cheevos_loaded && settings->bools.cheevos_hardcore_mode_enable)
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
@ -1888,7 +1888,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
#ifdef HAVE_CHEEVOS
|
||||
if (settings->bools.cheevos_hardcore_mode_enable)
|
||||
if (cheevos_loaded && settings->bools.cheevos_hardcore_mode_enable)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
@ -1979,7 +1979,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
{
|
||||
#ifdef HAVE_CHEEVOS
|
||||
settings_t *settings = config_get_ptr();
|
||||
if (settings->bools.cheevos_hardcore_mode_enable)
|
||||
if (cheevos_loaded && settings->bools.cheevos_hardcore_mode_enable)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
@ -1990,7 +1990,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
#ifdef HAVE_CHEEVOS
|
||||
if (settings->bools.cheevos_hardcore_mode_enable)
|
||||
if (cheevos_loaded && settings->bools.cheevos_hardcore_mode_enable)
|
||||
return false;
|
||||
#endif
|
||||
if (settings->bools.rewind_enable)
|
||||
|
@ -613,9 +613,12 @@ static void netplay_announce(void)
|
||||
char *corename = NULL;
|
||||
char *gamename = NULL;
|
||||
char *coreversion = NULL;
|
||||
char *frontend_ident = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
rarch_system_info_t *system = runloop_get_system_info();
|
||||
uint32_t content_crc = content_get_crc();
|
||||
const frontend_ctx_driver_t
|
||||
*frontend = frontend_get_ptr();
|
||||
|
||||
net_http_urlencode_full(&username, settings->paths.username);
|
||||
net_http_urlencode_full(&corename, system->info.library_name);
|
||||
@ -623,18 +626,19 @@ static void netplay_announce(void)
|
||||
!string_is_empty(path_basename(path_get(RARCH_PATH_BASENAME))) ?
|
||||
path_basename(path_get(RARCH_PATH_BASENAME)) : "N/A");
|
||||
net_http_urlencode_full(&coreversion, system->info.library_version);
|
||||
net_http_urlencode_full(&frontend_ident, frontend->ident);
|
||||
|
||||
buf[0] = '\0';
|
||||
|
||||
snprintf(buf, sizeof(buf), "username=%s&core_name=%s&core_version=%s&"
|
||||
"game_name=%s&game_crc=%08X&port=%d"
|
||||
"&has_password=%d&has_spectate_password=%d&force_mitm=%d&retroarch_version=%s",
|
||||
"&has_password=%d&has_spectate_password=%d&force_mitm=%d&retroarch_version=%s&frontend=%s",
|
||||
username, corename, coreversion, gamename, content_crc,
|
||||
settings->uints.netplay_port,
|
||||
*settings->paths.netplay_password ? 1 : 0,
|
||||
*settings->paths.netplay_spectate_password ? 1 : 0,
|
||||
settings->bools.netplay_use_mitm_server,
|
||||
PACKAGE_VERSION);
|
||||
PACKAGE_VERSION, frontend_ident);
|
||||
#if 0
|
||||
RARCH_LOG("[netplay] announcement URL: %s\n", buf);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user