| 4896 | } |
| 4897 | |
| 4898 | void FullscreenUI::DoSaveInputProfile(const std::string& name) |
| 4899 | { |
| 4900 | INISettingsInterface dsi(VMManager::GetInputProfilePath(name)); |
| 4901 | |
| 4902 | auto lock = Host::GetSettingsLock(); |
| 4903 | SettingsInterface* ssi = GetEditingSettingsInterface(); |
| 4904 | Pad::CopyConfiguration(&dsi, *ssi, true, true, IsEditingGameSettings(ssi)); |
| 4905 | USB::CopyConfiguration(&dsi, *ssi, true, true); |
| 4906 | if (dsi.Save()) |
| 4907 | ShowToast(std::string(), fmt::format(FSUI_FSTR("Input profile '{}' saved."), name)); |
| 4908 | else |
| 4909 | ShowToast(std::string(), fmt::format(FSUI_FSTR("Failed to save input profile '{}'."), name)); |
| 4910 | } |
| 4911 | |
| 4912 | void FullscreenUI::DoSaveInputProfile() |
| 4913 | { |