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

Method LocateFile

pcsx2/CDVD/IsoReader.cpp:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74std::optional<IsoReader::ISODirectoryEntry> IsoReader::LocateFile(const std::string_view path, Error* error)
75{
76 const ISODirectoryEntry* root_de = reinterpret_cast<const ISODirectoryEntry*>(m_pvd.root_directory_entry);
77 if (path.empty() || path == "/" || path == "\\")
78 {
79 // locating the root directory
80 return *root_de;
81 }
82
83 // start at the root directory
84 u8 sector_buffer[SECTOR_SIZE];
85 return LocateFile(path, sector_buffer, root_de->location_le, root_de->length_le, error);
86}
87
88std::string_view IsoReader::GetDirectoryEntryFileName(const u8* sector, u32 de_sector_offset)
89{

Callers 1

OpenIsoFileMethod · 0.80

Calls 5

compareNoCaseFunction · 0.85
substrMethod · 0.80
formatFunction · 0.50
emptyMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected