1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 08:22:04 +00:00

loader: update for 13.0.0 ncm changes

This commit is contained in:
Michael Scire 2021-09-19 10:24:32 -07:00
parent 4c5debdf88
commit bde480b5ca

View file

@ -85,6 +85,11 @@ namespace ams::ldr {
Result ResolveContentPath(char *out_path, const ncm::ProgramLocation &loc) {
lr::Path path;
/* Check that path registration is allowable. */
if (loc.storage_id == ncm::StorageId::Host) {
AMS_ABORT_UNLESS(spl::IsDevelopment());
}
/* Try to get the path from the registered resolver. */
lr::RegisteredLocationResolver reg;
R_TRY(lr::OpenRegisteredLocationResolver(std::addressof(reg)));