diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-17 11:49:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 11:49:11 -0400 |
commit | bd05ace08d04fe42b9cc94dae611adf2859d7c99 (patch) | |
tree | 185415915b3aec7b42f4e4be2ae53790c751d168 /src/core/core.cpp | |
parent | fa56518f209ad17ca0a46c408cc752d4083137ea (diff) | |
parent | 053a16799ef2746763f33a67918a7b87daddf2d0 (diff) |
Merge pull request #11774 from liamwhite/refcount-issue
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)) { |