[NCCH/NCSD] Pain

This commit is contained in:
wheremyfoodat 2022-10-01 19:40:40 +03:00
parent 29241b41ce
commit 6b6cc7ca2f
3 changed files with 40 additions and 6 deletions

View file

@ -64,5 +64,10 @@ std::optional<NCSD> Memory::loadNCSD(const std::filesystem::path& path) {
}
}
if (!ncsd.partitions[0].ncch.hasExtendedHeader()) {
printf("NCSD's CXI doesn't have exheader?\n");
return std::nullopt;
}
return ncsd;
}