summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fsmitm_romfsbuild.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-02 14:56:56 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-04 18:29:20 +0200
commitc1e069c066a609103c6b880585738ecabe48ddd2 (patch)
treebf599fa1e774ae098866d50ca5acbaf3441eb16e /src/core/file_sys/fsmitm_romfsbuild.h
parentfsmitm_romfsbuild: Add support for stubbing and IPS patches in LFS (diff)
downloadyuzu-c1e069c066a609103c6b880585738ecabe48ddd2.tar
yuzu-c1e069c066a609103c6b880585738ecabe48ddd2.tar.gz
yuzu-c1e069c066a609103c6b880585738ecabe48ddd2.tar.bz2
yuzu-c1e069c066a609103c6b880585738ecabe48ddd2.tar.lz
yuzu-c1e069c066a609103c6b880585738ecabe48ddd2.tar.xz
yuzu-c1e069c066a609103c6b880585738ecabe48ddd2.tar.zst
yuzu-c1e069c066a609103c6b880585738ecabe48ddd2.zip
Diffstat (limited to 'src/core/file_sys/fsmitm_romfsbuild.h')
-rw-r--r--src/core/file_sys/fsmitm_romfsbuild.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/fsmitm_romfsbuild.h b/src/core/file_sys/fsmitm_romfsbuild.h
index b0c3c123b..3d377b0af 100644
--- a/src/core/file_sys/fsmitm_romfsbuild.h
+++ b/src/core/file_sys/fsmitm_romfsbuild.h
@@ -40,7 +40,7 @@ struct RomFSFileEntry;
class RomFSBuildContext {
public:
- explicit RomFSBuildContext(VirtualDir base);
+ explicit RomFSBuildContext(VirtualDir base, VirtualDir ext = nullptr);
~RomFSBuildContext();
// This finalizes the context.
@@ -48,6 +48,7 @@ public:
private:
VirtualDir base;
+ VirtualDir ext;
std::shared_ptr<RomFSBuildDirectoryContext> root;
std::map<std::string, std::shared_ptr<RomFSBuildDirectoryContext>, std::less<>> directories;
std::map<std::string, std::shared_ptr<RomFSBuildFileContext>, std::less<>> files;
@@ -59,7 +60,8 @@ private:
u64 file_hash_table_size = 0;
u64 file_partition_size = 0;
- void VisitDirectory(VirtualDir filesys, std::shared_ptr<RomFSBuildDirectoryContext> parent);
+ void VisitDirectory(VirtualDir filesys, VirtualDir ext,
+ std::shared_ptr<RomFSBuildDirectoryContext> parent);
bool AddDirectory(std::shared_ptr<RomFSBuildDirectoryContext> parent_dir_ctx,
std::shared_ptr<RomFSBuildDirectoryContext> dir_ctx);