Add 3DSX RomFS reads via NCCH archive

This commit is contained in:
wheremyfoodat 2023-09-03 11:04:54 +03:00
parent 53917841bc
commit a380aa83f0
5 changed files with 15 additions and 8 deletions

View file

@ -125,6 +125,7 @@ std::optional<u32> SelfNCCHArchive::readFile(FileSession* file, u64 offset, u32
data.resize(size);
std::tie(success, bytesRead) = cxi->readFromFile(ioFile, fsInfo, &data[0], offset, size);
}
else if (auto hb3dsx = mem.get3DSX(); hb3dsx != nullptr) {
switch (type) {
case PathType::RomFS: {