mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-10 17:27:30 -10:00
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.
11 lines
174 B
Makefile
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
|