mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
settings_dialog: Add Restore Defaults button
Only works for config.yml for now (not gui settings)
This commit is contained in:
parent
42de2a3e0b
commit
019fa390f2
7 changed files with 269 additions and 157 deletions
|
|
@ -57,10 +57,12 @@ std::array<std::string, 4> microphone_creator::get_selection_list() const
|
|||
|
||||
std::string microphone_creator::set_device(u32 num, const QString& text)
|
||||
{
|
||||
ensure(num < m_sel_list.size());
|
||||
|
||||
if (text == get_none())
|
||||
m_sel_list[num - 1] = "";
|
||||
m_sel_list[num].clear();
|
||||
else
|
||||
m_sel_list[num - 1] = text.toStdString();
|
||||
m_sel_list[num] = text.toStdString();
|
||||
|
||||
return m_sel_list[0] + "@@@" + m_sel_list[1] + "@@@" + m_sel_list[2] + "@@@" + m_sel_list[3] + "@@@";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue