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

Method SaveCustomRegionForPath

pcsx2/GameList.cpp:1501–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1499}
1500
1501void GameList::SaveCustomRegionForPath(const std::string& path, int custom_region)
1502{
1503 INISettingsInterface names(GetCustomPropertiesFile());
1504 names.Load();
1505
1506 if (custom_region >= 0)
1507 {
1508 names.SetIntValue(EncodeIniKey(path).c_str(), "Region", custom_region);
1509 }
1510 else
1511 {
1512 names.DeleteValue(EncodeIniKey(path).c_str(), "Region");
1513 }
1514
1515 if (names.Save())
1516 {
1517 // Let the cache update by rescanning
1518 RescanPath(path);
1519 }
1520}
1521
1522std::string GameList::GetCustomTitleForPath(const std::string& path)
1523{

Callers

nothing calls this directly

Calls 5

LoadMethod · 0.45
SetIntValueMethod · 0.45
c_strMethod · 0.45
DeleteValueMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected