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

Method GetPath

pcsx2/SIO/Memcard/MemoryCardFolder.cpp:2242–2260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2240}
2241
2242bool MemoryCardFileMetadataReference::GetPath(std::string* fileName) const
2243{
2244 bool parentCleaned = false;
2245 if (parent)
2246 {
2247 parentCleaned = parent->GetPath(fileName);
2248 }
2249
2250 char cleanName[sizeof(entry->entry.data.name)];
2251 memcpy(cleanName, (const char*)entry->entry.data.name, sizeof(cleanName));
2252 bool localCleaned = FileAccessHelper::CleanMemcardFilename(cleanName);
2253
2254 if (entry->IsDir() || entry->IsFile())
2255 {
2256 *fileName = Path::Combine(*fileName, cleanName);
2257 }
2258
2259 return parentCleaned || localCleaned;
2260}
2261
2262void MemoryCardFileMetadataReference::GetInternalPath(std::string* fileName) const
2263{

Callers 4

OpenMethod · 0.80
WriteMetadataMethod · 0.80
WriteIndexMethod · 0.80
VSyncMethod · 0.80

Calls 3

CombineFunction · 0.85
IsDirMethod · 0.80
IsFileMethod · 0.80

Tested by

no test coverage detected