summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-03 07:50:59 +0200
committerLioncash <mathew1800@gmail.com>2018-10-03 07:51:01 +0200
commit02841052aa5e2126089268f465858fff379577d8 (patch)
treef739454355d27fc8d65d430289f94a0b92c73bd4
parentsubmission_package: Ensure the 'extracted' member variable is always initialized (diff)
downloadyuzu-02841052aa5e2126089268f465858fff379577d8.tar
yuzu-02841052aa5e2126089268f465858fff379577d8.tar.gz
yuzu-02841052aa5e2126089268f465858fff379577d8.tar.bz2
yuzu-02841052aa5e2126089268f465858fff379577d8.tar.lz
yuzu-02841052aa5e2126089268f465858fff379577d8.tar.xz
yuzu-02841052aa5e2126089268f465858fff379577d8.tar.zst
yuzu-02841052aa5e2126089268f465858fff379577d8.zip
-rw-r--r--src/core/file_sys/submission_package.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp
index d39b79edd..c3848e826 100644
--- a/src/core/file_sys/submission_package.cpp
+++ b/src/core/file_sys/submission_package.cpp
@@ -207,7 +207,7 @@ void NSP::InitializeExeFSAndRomFS(const std::vector<VirtualFile>& files) {
exefs = pfs;
const auto romfs_iter = std::find_if(files.begin(), files.end(), [](const VirtualFile& file) {
- return file->GetName().find(".romfs") != std::string::npos;
+ return file->GetName().rfind(".romfs") != std::string::npos;
});
if (romfs_iter == files.end()) {