mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
prevent hardcore toggle when emu-handled cheats are active
This commit is contained in:
parent
41981f62e1
commit
75fad11c27
@ -50,6 +50,10 @@
|
|||||||
#include "../network/discord.h"
|
#include "../network/discord.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_CHEATS
|
||||||
|
#include "../cheat_manager.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "badges.h"
|
#include "badges.h"
|
||||||
#include "cheevos.h"
|
#include "cheevos.h"
|
||||||
#include "cheevos_memory.h"
|
#include "cheevos_memory.h"
|
||||||
@ -1497,6 +1501,13 @@ static void rcheevos_toggle_hardcore_active(rcheevos_locals_t* locals)
|
|||||||
if (!locals->hardcore_active)
|
if (!locals->hardcore_active)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef HAVE_CHEATS
|
||||||
|
/* if one or more emulator managed cheats is active, abort */
|
||||||
|
cheat_manager_apply_cheats();
|
||||||
|
if (!locals->hardcore_active)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (locals->loaded)
|
if (locals->loaded)
|
||||||
{
|
{
|
||||||
const char* msg = msg_hash_to_str(MSG_CHEEVOS_HARDCORE_MODE_ENABLE);
|
const char* msg = msg_hash_to_str(MSG_CHEEVOS_HARDCORE_MODE_ENABLE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user