| 643 | } |
| 644 | |
| 645 | void Scene_Settings::RefreshInputActionAllowed() { |
| 646 | auto button = static_cast<Input::InputButton>(options_window->GetFrame().arg); |
| 647 | auto mapping_count = Input::GetInputSource()->GetButtonMappings().Count(button); |
| 648 | input_mode_window->SetItemEnabled(0, mapping_count < Window_InputSettings::mapping_limit); |
| 649 | input_mode_window->SetItemEnabled(1, mapping_count > (Input::IsProtectedButton(button) ? 1 : 0)); |
| 650 | } |
| 651 | |
| 652 | bool Scene_Settings::SaveConfig(bool silent) { |
| 653 | auto cfg_out = Game_Config::GetGlobalConfigFileOutput(); |
nothing calls this directly
no test coverage detected