diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-19 05:25:07 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-19 05:45:22 +0200 |
commit | 9abc5763b6ade0f3e7e6b3542f45bb867a634bba (patch) | |
tree | 57cd9eb533d76cd5c9271863b6d37a6f61d83089 /src/core/file_sys/partition_filesystem.h | |
parent | Merge pull request #691 from lioncash/guard (diff) | |
download | yuzu-9abc5763b6ade0f3e7e6b3542f45bb867a634bba.tar yuzu-9abc5763b6ade0f3e7e6b3542f45bb867a634bba.tar.gz yuzu-9abc5763b6ade0f3e7e6b3542f45bb867a634bba.tar.bz2 yuzu-9abc5763b6ade0f3e7e6b3542f45bb867a634bba.tar.lz yuzu-9abc5763b6ade0f3e7e6b3542f45bb867a634bba.tar.xz yuzu-9abc5763b6ade0f3e7e6b3542f45bb867a634bba.tar.zst yuzu-9abc5763b6ade0f3e7e6b3542f45bb867a634bba.zip |
Diffstat (limited to 'src/core/file_sys/partition_filesystem.h')
-rw-r--r-- | src/core/file_sys/partition_filesystem.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/file_sys/partition_filesystem.h b/src/core/file_sys/partition_filesystem.h index 9656b40bf..7c7a75816 100644 --- a/src/core/file_sys/partition_filesystem.h +++ b/src/core/file_sys/partition_filesystem.h @@ -42,6 +42,8 @@ private: u32_le num_entries; u32_le strtab_size; INSERT_PADDING_BYTES(0x4); + + bool HasValidMagicValue() const; }; static_assert(sizeof(Header) == 0x10, "PFS/HFS header structure size is wrong"); @@ -73,11 +75,11 @@ private: #pragma pack(pop) - Loader::ResultStatus status; + Loader::ResultStatus status{}; - Header pfs_header; - bool is_hfs; - size_t content_offset; + Header pfs_header{}; + bool is_hfs = false; + size_t content_offset = 0; std::vector<VirtualFile> pfs_files; std::vector<VirtualDir> pfs_dirs; |