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

Method FlushFileEntries

pcsx2/SIO/Memcard/MemoryCardFolder.cpp:1208–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1206}
1207
1208void FolderMemoryCard::FlushFileEntries()
1209{
1210 // Flush all file entry data from the cache into m_fileEntryDict.
1211 const u32 rootDirCluster = m_superBlock.data.rootdir_cluster;
1212 FlushCluster(rootDirCluster + m_superBlock.data.alloc_offset);
1213 MemoryCardFileEntryCluster* rootEntries = &m_fileEntryDict[rootDirCluster];
1214 if (rootEntries->entries[0].IsValid() && rootEntries->entries[0].IsUsed())
1215 {
1216 FlushFileEntries(rootDirCluster, rootEntries->entries[0].entry.data.length);
1217 }
1218}
1219
1220void FolderMemoryCard::FlushFileEntries(const u32 dirCluster, const u32 remainingFiles, const std::string& dirPath, MemoryCardFileMetadataReference* parent)
1221{

Callers

nothing calls this directly

Calls 14

CombineFunction · 0.85
loadYamlFileFunction · 0.85
SaveYAMLToFileFunction · 0.85
IsDirMethod · 0.80
IsDotDirMethod · 0.80
ToTimeMethod · 0.80
IsFileMethod · 0.80
minFunction · 0.50
IsValidMethod · 0.45
IsUsedMethod · 0.45
c_strMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected