SmallString: fmt -> format, format -> sprintf
This commit is contained in:
@ -172,7 +172,7 @@ void MemoryCardSettingsWidget::onBrowseMemoryCardPathClicked(int index)
|
||||
|
||||
void MemoryCardSettingsWidget::onMemoryCardPathChanged(int index)
|
||||
{
|
||||
const auto key = TinyString::from_fmt("Card{}Path", index + 1);
|
||||
const auto key = TinyString::from_format("Card{}Path", index + 1);
|
||||
std::string relative_path(
|
||||
Path::MakeRelative(m_port_ui[index].memory_card_path->text().toStdString(), EmuFolders::MemoryCards));
|
||||
m_dialog->setStringSettingValue("MemoryCards", key, relative_path.c_str());
|
||||
@ -180,7 +180,7 @@ void MemoryCardSettingsWidget::onMemoryCardPathChanged(int index)
|
||||
|
||||
void MemoryCardSettingsWidget::onResetMemoryCardPathClicked(int index)
|
||||
{
|
||||
const auto key = TinyString::from_fmt("Card{}Path", index + 1);
|
||||
const auto key = TinyString::from_format("Card{}Path", index + 1);
|
||||
if (m_dialog->isPerGameSettings())
|
||||
m_dialog->removeSettingValue("MemoryCards", key);
|
||||
else
|
||||
@ -191,7 +191,7 @@ void MemoryCardSettingsWidget::onResetMemoryCardPathClicked(int index)
|
||||
|
||||
void MemoryCardSettingsWidget::updateMemoryCardPath(int index)
|
||||
{
|
||||
const auto key = TinyString::from_fmt("Card{}Path", index + 1);
|
||||
const auto key = TinyString::from_format("Card{}Path", index + 1);
|
||||
std::string path(
|
||||
m_dialog->getEffectiveStringValue("MemoryCards", key, Settings::GetDefaultSharedMemoryCardName(index).c_str()));
|
||||
if (!Path::IsAbsolute(path))
|
||||
|
||||
Reference in New Issue
Block a user