summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fsmitm_romfsbuild.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-26 00:17:42 +0200
committerLioncash <mathew1800@gmail.com>2018-09-26 02:06:21 +0200
commit91b56c49280355cf4d1d4283ce05645a85aac1fb (patch)
treed0109661742439bb50cdeeaa14dc990bdcb2a329 /src/core/file_sys/fsmitm_romfsbuild.cpp
parentfsmitm_romfsbuild: Remove unnecessary loops in Build() (diff)
downloadyuzu-91b56c49280355cf4d1d4283ce05645a85aac1fb.tar
yuzu-91b56c49280355cf4d1d4283ce05645a85aac1fb.tar.gz
yuzu-91b56c49280355cf4d1d4283ce05645a85aac1fb.tar.bz2
yuzu-91b56c49280355cf4d1d4283ce05645a85aac1fb.tar.lz
yuzu-91b56c49280355cf4d1d4283ce05645a85aac1fb.tar.xz
yuzu-91b56c49280355cf4d1d4283ce05645a85aac1fb.tar.zst
yuzu-91b56c49280355cf4d1d4283ce05645a85aac1fb.zip
Diffstat (limited to 'src/core/file_sys/fsmitm_romfsbuild.cpp')
-rw-r--r--src/core/file_sys/fsmitm_romfsbuild.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/file_sys/fsmitm_romfsbuild.cpp b/src/core/file_sys/fsmitm_romfsbuild.cpp
index b8807e5ca..20dd69570 100644
--- a/src/core/file_sys/fsmitm_romfsbuild.cpp
+++ b/src/core/file_sys/fsmitm_romfsbuild.cpp
@@ -73,7 +73,7 @@ static_assert(sizeof(RomFSFileEntry) == 0x20, "RomFSFileEntry has incorrect size
struct RomFSBuildFileContext;
struct RomFSBuildDirectoryContext {
- std::string path = "";
+ std::string path;
u32 cur_path_ofs = 0;
u32 path_len = 0;
u32 entry_offset = 0;
@@ -84,7 +84,7 @@ struct RomFSBuildDirectoryContext {
};
struct RomFSBuildFileContext {
- std::string path = "";
+ std::string path;
u32 cur_path_ofs = 0;
u32 path_len = 0;
u32 entry_offset = 0;
@@ -92,9 +92,7 @@ struct RomFSBuildFileContext {
u64 size = 0;
std::shared_ptr<RomFSBuildDirectoryContext> parent;
std::shared_ptr<RomFSBuildFileContext> sibling;
- VirtualFile source = nullptr;
-
- RomFSBuildFileContext() : path(""), cur_path_ofs(0), path_len(0) {}
+ VirtualFile source;
};
static u32 romfs_calc_path_hash(u32 parent, std::string path, u32 start, std::size_t path_len) {