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

Method LoadCache

pcsx2/GameList.cpp:562–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562void GameList::LoadCache()
563{
564 const std::string cache_filename(GetCacheFilename());
565 auto stream = FileSystem::OpenManagedCFile(cache_filename.c_str(), "rb");
566 if (!stream)
567 return;
568
569 if (!LoadEntriesFromCache(stream.get()))
570 {
571 Console.Warning("Deleting corrupted cache file '%s'", cache_filename.c_str());
572 stream.reset();
573 s_cache_map.clear();
574 DeleteCacheFile();
575 return;
576 }
577}
578
579bool GameList::OpenCacheForWriting()
580{

Callers

nothing calls this directly

Calls 6

GetCacheFilenameFunction · 0.85
c_strMethod · 0.45
getMethod · 0.45
WarningMethod · 0.45
resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected