summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-03 08:06:26 +0200
committerLioncash <mathew1800@gmail.com>2018-10-03 08:06:30 +0200
commitdade709f6347ca3b27a0577efc25adae8e89bcf8 (patch)
tree87354e6c2e7c117eebdc762f7d8976991b7ad0a4 /src/core/file_sys
parentsubmission_package: Use std::string's rfind() when looking for the extension in InitializeExeFSAndRomFS() (diff)
downloadyuzu-dade709f6347ca3b27a0577efc25adae8e89bcf8.tar
yuzu-dade709f6347ca3b27a0577efc25adae8e89bcf8.tar.gz
yuzu-dade709f6347ca3b27a0577efc25adae8e89bcf8.tar.bz2
yuzu-dade709f6347ca3b27a0577efc25adae8e89bcf8.tar.lz
yuzu-dade709f6347ca3b27a0577efc25adae8e89bcf8.tar.xz
yuzu-dade709f6347ca3b27a0577efc25adae8e89bcf8.tar.zst
yuzu-dade709f6347ca3b27a0577efc25adae8e89bcf8.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/submission_package.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp
index c3848e826..829aca06f 100644
--- a/src/core/file_sys/submission_package.cpp
+++ b/src/core/file_sys/submission_package.cpp
@@ -23,13 +23,16 @@ void SetTicketKeys(const std::vector<VirtualFile>& files) {
Core::Crypto::KeyManager keys;
for (const auto& ticket_file : files) {
+ if (ticket_file == nullptr) {
+ continue;
+ }
+
if (ticket_file->GetExtension() != "tik") {
continue;
}
- if (ticket_file == nullptr ||
- ticket_file->GetSize() <
- Core::Crypto::TICKET_FILE_TITLEKEY_OFFSET + sizeof(Core::Crypto::Key128)) {
+ if (ticket_file->GetSize() <
+ Core::Crypto::TICKET_FILE_TITLEKEY_OFFSET + sizeof(Core::Crypto::Key128)) {
continue;
}