| 650 | } |
| 651 | |
| 652 | void GameList::DeleteCacheFile() |
| 653 | { |
| 654 | pxAssert(!s_cache_write_stream); |
| 655 | |
| 656 | const std::string cache_filename(GetCacheFilename()); |
| 657 | if (cache_filename.empty() || !FileSystem::FileExists(cache_filename.c_str())) |
| 658 | return; |
| 659 | |
| 660 | if (FileSystem::DeleteFilePath(cache_filename.c_str())) |
| 661 | Console.WriteLn("Deleted game list cache '%s'", cache_filename.c_str()); |
| 662 | else |
| 663 | Console.Warning("Failed to delete game list cache '%s'", cache_filename.c_str()); |
| 664 | } |
| 665 | |
| 666 | void GameList::RewriteCacheFile() |
| 667 | { |
nothing calls this directly
no test coverage detected