| 2240 | } |
| 2241 | |
| 2242 | bool 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 | |
| 2262 | void MemoryCardFileMetadataReference::GetInternalPath(std::string* fileName) const |
| 2263 | { |
no test coverage detected