| 1206 | } |
| 1207 | |
| 1208 | void 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 | |
| 1220 | void FolderMemoryCard::FlushFileEntries(const u32 dirCluster, const u32 remainingFiles, const std::string& dirPath, MemoryCardFileMetadataReference* parent) |
| 1221 | { |
nothing calls this directly
no test coverage detected