diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-08-20 20:24:13 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-08-20 20:27:00 -0400 |
| commit | 935346a9b2f434c2c2f7aa6361a1ec0c9bc2a10b (patch) | |
| tree | ea1fb4b71ce40a62213f02a5ddbaa4502bbe54ec /src/core/file_sys/romfs_factory.cpp | |
| parent | 821b9d1901efafcde5526806eef61ff6b8102a04 (diff) | |
romfs_factory: Remove unnecessary includes and use forward declarations where applicable
Avoids the need to rebuild whatever includes the romfs factory header if
the loader header ever changes. We also don't need to include the main
core header. We can instead include the headers we specifically need.
Diffstat (limited to 'src/core/file_sys/romfs_factory.cpp')
| -rw-r--r-- | src/core/file_sys/romfs_factory.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp index 1b3824a61b..ab67bc7493 100644 --- a/src/core/file_sys/romfs_factory.cpp +++ b/src/core/file_sys/romfs_factory.cpp @@ -6,15 +6,17 @@ #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/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!"); } } |
