Files
RetroArch/samples/menu/setting_command/Makefile
T
Davey Hughes 2fb077f223 menu: a setting's command fires once per press (#19730)
menu_action_handle_setting() calls the row's handler and then
menu_setting_generic(), and both run the change handler. A handler
that runs it itself, as the boolean ones and Start do, fired the
row's command twice: once through SD_FLAG_CMD_APPLY_AUTO, or through
SD_FLAG_CMD_TRIGGER_EVENT_TRIGGERED, which stays set after a row's
first press, and once more from menu_setting_generic(). Toggling a
boolean with CMD_EVENT_REINIT, such as Bilinear Filtering from its
second press on, reinitialised the video driver twice.

The row carries neither flag while its handler runs, so the command
fires from menu_setting_generic() alone.

Still twice: set_path_generic() and menu_input_st_string_cb(), which
run the change handler before menu_setting_generic() themselves, and
the rows general_write_handler() picks the command for, such as the
audio ones.

samples/menu/setting_command presses two such rows on the null video
driver with OK, right, left and Start, and counts its inits.
2026-10-07 06:15:31 +02:00

11 lines
174 B
Makefile

TARGET := setting_command_test
all:
@sh ./build.sh
clean:
rm -f $(TARGET) retroarch_nomain.o retroarch_nomain.d \
harness_main.o harness_main.d
.PHONY: all clean