mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
add write handler for achievement_hardcore_mode_write_handler
This commit is contained in:
parent
c07744564a
commit
986a8d3003
@ -50,6 +50,11 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_CHEEVOS
|
||||||
|
#include "../cheevos/cheevos.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "../frontend/frontend_driver.h"
|
#include "../frontend/frontend_driver.h"
|
||||||
|
|
||||||
#include "widgets/menu_input_bind_dialog.h"
|
#include "widgets/menu_input_bind_dialog.h"
|
||||||
@ -1871,6 +1876,23 @@ static void overlay_enable_toggle_change_handler(rarch_setting_t *setting)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_CHEEVOS
|
||||||
|
static void achievement_hardcore_mode_write_handler(rarch_setting_t *setting)
|
||||||
|
{
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
|
if (!setting)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (settings && settings->bools.cheevos_hardcore_mode_enable && cheevos_state_loaded_flag)
|
||||||
|
{
|
||||||
|
cheevos_hardcore_paused = true;
|
||||||
|
runloop_msg_queue_push(msg_hash_to_str(MSG_CHEEVOS_HARDCORE_MODE_DISABLED), 0, 180, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LAKKA
|
#ifdef HAVE_LAKKA
|
||||||
static void systemd_service_toggle(const char *path, char *unit, bool enable)
|
static void systemd_service_toggle(const char *path, char *unit, bool enable)
|
||||||
{
|
{
|
||||||
@ -7671,7 +7693,7 @@ static bool setting_append_list(
|
|||||||
&group_info,
|
&group_info,
|
||||||
&subgroup_info,
|
&subgroup_info,
|
||||||
parent_group,
|
parent_group,
|
||||||
general_write_handler,
|
achievement_hardcore_mode_write_handler,
|
||||||
general_read_handler,
|
general_read_handler,
|
||||||
SD_FLAG_NONE
|
SD_FLAG_NONE
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user