mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #12763 from liamwhite/fix-hbl-again
loader: also register fs process for raw exefs partition
This commit is contained in:
commit
a76f6a2775
1 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include "core/file_sys/nca_metadata.h"
|
#include "core/file_sys/nca_metadata.h"
|
||||||
#include "core/file_sys/patch_manager.h"
|
#include "core/file_sys/patch_manager.h"
|
||||||
#include "core/file_sys/registered_cache.h"
|
#include "core/file_sys/registered_cache.h"
|
||||||
|
#include "core/file_sys/romfs_factory.h"
|
||||||
#include "core/file_sys/submission_package.h"
|
#include "core/file_sys/submission_package.h"
|
||||||
#include "core/hle/kernel/k_process.h"
|
#include "core/hle/kernel/k_process.h"
|
||||||
#include "core/hle/service/filesystem/filesystem.h"
|
#include "core/hle/service/filesystem/filesystem.h"
|
||||||
|
@ -109,6 +110,13 @@ AppLoader_NSP::LoadResult AppLoader_NSP::Load(Kernel::KProcess& process, Core::S
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nsp->IsExtractedType()) {
|
||||||
|
system.GetFileSystemController().RegisterProcess(
|
||||||
|
process.GetProcessId(), {},
|
||||||
|
std::make_shared<FileSys::RomFSFactory>(*this, system.GetContentProvider(),
|
||||||
|
system.GetFileSystemController()));
|
||||||
|
}
|
||||||
|
|
||||||
FileSys::VirtualFile update_raw;
|
FileSys::VirtualFile update_raw;
|
||||||
if (ReadUpdateRaw(update_raw) == ResultStatus::Success && update_raw != nullptr) {
|
if (ReadUpdateRaw(update_raw) == ResultStatus::Success && update_raw != nullptr) {
|
||||||
system.GetFileSystemController().SetPackedUpdate(process.GetProcessId(),
|
system.GetFileSystemController().SetPackedUpdate(process.GetProcessId(),
|
||||||
|
|
Loading…
Reference in a new issue