| 1478 | } |
| 1479 | |
| 1480 | void 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 | |
| 1501 | void GameList::SaveCustomRegionForPath(const std::string& path, int custom_region) |
| 1502 | { |
nothing calls this directly
no test coverage detected