aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-17 11:49:11 -0400
committerGitHub <noreply@github.com>2023-10-17 11:49:11 -0400
commitbc96d78b7865fcabdf8a3165f51d0bf063f8da38 (patch)
tree185415915b3aec7b42f4e4be2ae53790c751d168 /src/core/core.cpp
parent68bf6fb4570e7a82b7daaffacc5176b07e07ff6b (diff)
parent37871dacd463a0b52c1602fbd8d3e27d0a82ac4e (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.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 0ab2e3b761..d7e2efbd7e 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)) {