Browse Source
Merge pull request #1242 from lioncash/file-sys
file_sys/submission_package: Replace includes with forward declarations where applicable
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
17 additions and
8 deletions
-
src/core/file_sys/submission_package.cpp
-
src/core/file_sys/submission_package.h
|
|
|
@ -2,9 +2,15 @@ |
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
#include <cstring>
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include <fmt/ostream.h>
|
|
|
|
#include "common/assert.h"
|
|
|
|
|
|
|
|
#include "common/hex_util.h"
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "core/crypto/key_manager.h"
|
|
|
|
#include "core/file_sys/content_archive.h"
|
|
|
|
#include "core/file_sys/nca_metadata.h"
|
|
|
|
#include "core/file_sys/partition_filesystem.h"
|
|
|
|
@ -13,8 +19,8 @@ |
|
|
|
|
|
|
|
namespace FileSys { |
|
|
|
NSP::NSP(VirtualFile file_) |
|
|
|
: file(std::move(file_)), |
|
|
|
pfs(std::make_shared<PartitionFilesystem>(file)), status{Loader::ResultStatus::Success} { |
|
|
|
: file(std::move(file_)), status{Loader::ResultStatus::Success}, |
|
|
|
pfs(std::make_shared<PartitionFilesystem>(file)) { |
|
|
|
if (pfs->GetStatus() != Loader::ResultStatus::Success) { |
|
|
|
status = pfs->GetStatus(); |
|
|
|
return; |
|
|
|
|
|
|
|
@ -4,20 +4,23 @@ |
|
|
|
|
|
|
|
#pragma once |
|
|
|
|
|
|
|
#include <array> |
|
|
|
#include <map> |
|
|
|
#include <memory> |
|
|
|
#include <vector> |
|
|
|
#include "common/common_types.h" |
|
|
|
#include "common/swap.h" |
|
|
|
#include "core/file_sys/content_archive.h" |
|
|
|
#include "core/file_sys/romfs_factory.h" |
|
|
|
#include "core/file_sys/vfs.h" |
|
|
|
#include "core/loader/loader.h" |
|
|
|
|
|
|
|
namespace Loader { |
|
|
|
enum class ResultStatus : u16; |
|
|
|
} |
|
|
|
|
|
|
|
namespace FileSys { |
|
|
|
|
|
|
|
class NCA; |
|
|
|
class PartitionFilesystem; |
|
|
|
|
|
|
|
enum class ContentRecordType : u8; |
|
|
|
|
|
|
|
class NSP : public ReadOnlyVfsDirectory { |
|
|
|
public: |
|
|
|
explicit NSP(VirtualFile file); |
|
|
|
|