Reset the flag on reset

This commit is contained in:
radius 2018-09-22 21:27:19 -05:00
parent c4d678a1ce
commit a0339e95ec
3 changed files with 5 additions and 2 deletions

View File

@ -2266,7 +2266,8 @@ bool cheevos_toggle_hardcore_mode(void)
return false;
/* reset and deinit rewind to avoid cheat the score */
if (settings->bools.cheevos_hardcore_mode_enable && !cheevos_hardcore_paused)
if (settings->bools.cheevos_hardcore_mode_enable
&& !cheevos_hardcore_paused)
{
const char *msg = msg_hash_to_str(
MSG_CHEEVOS_HARDCORE_MODE_ENABLE);

View File

@ -1908,6 +1908,8 @@ bool command_event(enum event_command cmd, void *data)
command_event_init_controllers();
break;
case CMD_EVENT_RESET:
cheevos_state_loaded_flag = false;
cheevos_hardcore_paused = false;
RARCH_LOG("%s.\n", msg_hash_to_str(MSG_RESET));
runloop_msg_queue_push(msg_hash_to_str(MSG_RESET), 1, 120, true);

View File

@ -7544,5 +7544,5 @@ MSG_HASH(
)
MSG_HASH(
MSG_CHEEVOS_HARDCORE_MODE_DISABLED,
"Savestate loaded, Achievements Hardcore Mode disabled for the current session."
"A savestate was loaded, Achievements Hardcore Mode disabled for the current session. Restart to enable hardcore mode."
)