Ticket #15224: add-sound-to-toggles-in-game-setup.patch

File add-sound-to-toggles-in-game-setup.patch, 510 bytes (added by scummvmuser, 5 months ago)
  • engines/nancy/state/setupmenu.cpp

    diff --git a/engines/nancy/state/setupmenu.cpp b/engines/nancy/state/setupmenu.cpp
    index f62464c35e3..73d670a0248 100644
    a b void SetupMenu::run() {  
    226226                auto *tog = _toggles[i];
    227227                tog->handleInput(input);
    228228                if (tog->_stateChanged) {
     229                        g_nancy->_sound->playSound("BUOK");
    229230                        Common::String key = getToggleConfManKey(i);
    230231                        if (key.size()) {
    231232                                // Make sure we don't write an empty string as a key in ConfMan