diff options
author | Liam <byteslice@airmail.cc> | 2023-10-13 13:34:41 -0400 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-10-13 14:22:52 -0400 |
commit | 053a16799ef2746763f33a67918a7b87daddf2d0 (patch) | |
tree | c26537689565094cf3df8be17bccee33bc317540 /src/core/core.cpp | |
parent | 1a4874e178860d723760d98be337cd4640b06a30 (diff) |
fsmitm_romfsbuild: avoid unnecessary copies of vfs pointers
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 0ab2e3b76..d7e2efbd7 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -116,11 +116,8 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, } } - if (concat.empty()) { - return nullptr; - } - - return FileSys::ConcatenatedVfsFile::MakeConcatenatedFile(concat, dir->GetName()); + return FileSys::ConcatenatedVfsFile::MakeConcatenatedFile(dir->GetName(), + std::move(concat)); } if (Common::FS::IsDir(path)) { |