summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-17 17:49:11 +0200
committerGitHub <noreply@github.com>2023-10-17 17:49:11 +0200
commitbd05ace08d04fe42b9cc94dae611adf2859d7c99 (patch)
tree185415915b3aec7b42f4e4be2ae53790c751d168 /src/core/core.cpp
parentMerge pull request #11747 from Kelebek1/image_alias_sample_names (diff)
parentfsmitm_romfsbuild: avoid unnecessary copies of vfs pointers (diff)
downloadyuzu-bd05ace08d04fe42b9cc94dae611adf2859d7c99.tar
yuzu-bd05ace08d04fe42b9cc94dae611adf2859d7c99.tar.gz
yuzu-bd05ace08d04fe42b9cc94dae611adf2859d7c99.tar.bz2
yuzu-bd05ace08d04fe42b9cc94dae611adf2859d7c99.tar.lz
yuzu-bd05ace08d04fe42b9cc94dae611adf2859d7c99.tar.xz
yuzu-bd05ace08d04fe42b9cc94dae611adf2859d7c99.tar.zst
yuzu-bd05ace08d04fe42b9cc94dae611adf2859d7c99.zip
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 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)) {