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

Method SaveCustomTitleForPath

pcsx2/GameList.cpp:1480–1499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1478}
1479
1480void GameList::SaveCustomTitleForPath(const std::string& path, const std::string& custom_title)
1481{
1482 INISettingsInterface names(GetCustomPropertiesFile());
1483 names.Load();
1484
1485 if (!custom_title.empty())
1486 {
1487 names.SetStringValue(EncodeIniKey(path).c_str(), "Title", custom_title.c_str());
1488 }
1489 else
1490 {
1491 names.DeleteValue(EncodeIniKey(path).c_str(), "Title");
1492 }
1493
1494 if (names.Save())
1495 {
1496 // Let the cache update by rescanning
1497 RescanPath(path);
1498 }
1499}
1500
1501void GameList::SaveCustomRegionForPath(const std::string& path, int custom_region)
1502{

Callers

nothing calls this directly

Calls 6

LoadMethod · 0.45
emptyMethod · 0.45
SetStringValueMethod · 0.45
c_strMethod · 0.45
DeleteValueMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected