summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorCruel <machin3@gmail.com>2015-09-21 07:30:06 +0200
committerCruel <machin3@gmail.com>2015-09-21 19:03:18 +0200
commitd60a9be5c6332da6e6ff82125e53b1365a389ae0 (patch)
tree2b2ec9ae8db37137e5fd9c2a6c93f7d7c38984b7 /src/core/loader/loader.cpp
parentMerge pull request #1097 from yuriks/cfg-blocks (diff)
downloadyuzu-d60a9be5c6332da6e6ff82125e53b1365a389ae0.tar
yuzu-d60a9be5c6332da6e6ff82125e53b1365a389ae0.tar.gz
yuzu-d60a9be5c6332da6e6ff82125e53b1365a389ae0.tar.bz2
yuzu-d60a9be5c6332da6e6ff82125e53b1365a389ae0.tar.lz
yuzu-d60a9be5c6332da6e6ff82125e53b1365a389ae0.tar.xz
yuzu-d60a9be5c6332da6e6ff82125e53b1365a389ae0.tar.zst
yuzu-d60a9be5c6332da6e6ff82125e53b1365a389ae0.zip
Diffstat (limited to '')
-rw-r--r--src/core/loader/loader.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 74eb6e871..c4b4f5a5d 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -116,7 +116,15 @@ ResultStatus LoadFile(const std::string& filename) {
//3DSX file format...
case FileType::THREEDSX:
- return AppLoader_THREEDSX(std::move(file), filename_filename).Load();
+ {
+ AppLoader_THREEDSX app_loader(std::move(file), filename_filename, filename);
+ // Load application and RomFS
+ if (ResultStatus::Success == app_loader.Load()) {
+ Service::FS::RegisterArchiveType(Common::make_unique<FileSys::ArchiveFactory_RomFS>(app_loader), Service::FS::ArchiveIdCode::RomFS);
+ return ResultStatus::Success;
+ }
+ break;
+ }
// Standard ELF file format...
case FileType::ELF: