MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / DoSaveInputProfile

Method DoSaveInputProfile

pcsx2/ImGui/FullscreenUI_Settings.cpp:4898–4910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4896}
4897
4898void 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
4912void FullscreenUI::DoSaveInputProfile()
4913{

Callers

nothing calls this directly

Calls 6

stringClass · 0.50
formatFunction · 0.50
SaveMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected