| 1499 | } |
| 1500 | |
| 1501 | void 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 | |
| 1522 | std::string GameList::GetCustomTitleForPath(const std::string& path) |
| 1523 | { |
nothing calls this directly
no test coverage detected