diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-21 07:18:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 07:18:04 +0200 |
commit | 79243b6fa08bce2811fb077b432f81f2b752c544 (patch) | |
tree | bec6ae2e3f02afe0201b5d3a64d49b32e666a72a /src/core/file_sys | |
parent | Merge pull request #1132 from Subv/gl_FragDepth (diff) | |
parent | service/filesystem: Use forward declarations where applicable (diff) | |
download | yuzu-79243b6fa08bce2811fb077b432f81f2b752c544.tar yuzu-79243b6fa08bce2811fb077b432f81f2b752c544.tar.gz yuzu-79243b6fa08bce2811fb077b432f81f2b752c544.tar.bz2 yuzu-79243b6fa08bce2811fb077b432f81f2b752c544.tar.lz yuzu-79243b6fa08bce2811fb077b432f81f2b752c544.tar.xz yuzu-79243b6fa08bce2811fb077b432f81f2b752c544.tar.zst yuzu-79243b6fa08bce2811fb077b432f81f2b752c544.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/nca_metadata.h | 1 | ||||
-rw-r--r-- | src/core/file_sys/romfs_factory.cpp | 7 | ||||
-rw-r--r-- | src/core/file_sys/romfs_factory.h | 8 |
3 files changed, 13 insertions, 3 deletions
diff --git a/src/core/file_sys/nca_metadata.h b/src/core/file_sys/nca_metadata.h index 88e66d4da..ce05b4c1d 100644 --- a/src/core/file_sys/nca_metadata.h +++ b/src/core/file_sys/nca_metadata.h @@ -7,6 +7,7 @@ #include <cstring> #include <memory> #include <vector> +#include "common/common_funcs.h" #include "common/common_types.h" #include "common/swap.h" #include "core/file_sys/vfs.h" diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp index 1b3824a61..eb4e6c865 100644 --- a/src/core/file_sys/romfs_factory.cpp +++ b/src/core/file_sys/romfs_factory.cpp @@ -6,15 +6,18 @@ #include <memory> #include "common/common_types.h" #include "common/logging/log.h" -#include "core/core.h" +#include "core/file_sys/nca_metadata.h" +#include "core/file_sys/registered_cache.h" #include "core/file_sys/romfs_factory.h" #include "core/hle/kernel/process.h" +#include "core/hle/service/filesystem/filesystem.h" +#include "core/loader/loader.h" namespace FileSys { RomFSFactory::RomFSFactory(Loader::AppLoader& app_loader) { // Load the RomFS from the app - if (Loader::ResultStatus::Success != app_loader.ReadRomFS(file)) { + if (app_loader.ReadRomFS(file) != Loader::ResultStatus::Success) { LOG_ERROR(Service_FS, "Unable to read RomFS!"); } } diff --git a/src/core/file_sys/romfs_factory.h b/src/core/file_sys/romfs_factory.h index 455cd4159..f38ddc4f7 100644 --- a/src/core/file_sys/romfs_factory.h +++ b/src/core/file_sys/romfs_factory.h @@ -6,11 +6,17 @@ #include <memory> #include "common/common_types.h" +#include "core/file_sys/vfs.h" #include "core/hle/result.h" -#include "core/loader/loader.h" + +namespace Loader { +class AppLoader; +} // namespace Loader namespace FileSys { +enum class ContentRecordType : u8; + enum class StorageId : u8 { None = 0, Host = 1, |