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

Method DeleteCacheFile

pcsx2/GameList.cpp:652–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652void 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
666void GameList::RewriteCacheFile()
667{

Callers

nothing calls this directly

Calls 5

GetCacheFilenameFunction · 0.85
emptyMethod · 0.45
c_strMethod · 0.45
WriteLnMethod · 0.45
WarningMethod · 0.45

Tested by

no test coverage detected