summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-25 04:15:32 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-25 04:15:32 +0200
commit6314a799aa7e20789562d2e877949dfebb6194ce (patch)
treef5bd5cdd7e5804e7416abf75ab411c0be69b97e6 /src/core/file_sys
parentxci: Ignore NCA files with updates in secure (diff)
downloadyuzu-6314a799aa7e20789562d2e877949dfebb6194ce.tar
yuzu-6314a799aa7e20789562d2e877949dfebb6194ce.tar.gz
yuzu-6314a799aa7e20789562d2e877949dfebb6194ce.tar.bz2
yuzu-6314a799aa7e20789562d2e877949dfebb6194ce.tar.lz
yuzu-6314a799aa7e20789562d2e877949dfebb6194ce.tar.xz
yuzu-6314a799aa7e20789562d2e877949dfebb6194ce.tar.zst
yuzu-6314a799aa7e20789562d2e877949dfebb6194ce.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/sdmc_factory.cpp2
-rw-r--r--src/core/file_sys/sdmc_factory.h1
-rw-r--r--src/core/file_sys/xts_archive.cpp2
-rw-r--r--src/core/file_sys/xts_archive.h1
4 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/sdmc_factory.cpp b/src/core/file_sys/sdmc_factory.cpp
index e4df5c4d0..d66a9c9a4 100644
--- a/src/core/file_sys/sdmc_factory.cpp
+++ b/src/core/file_sys/sdmc_factory.cpp
@@ -16,6 +16,8 @@ SDMCFactory::SDMCFactory(VirtualDir dir_)
return std::make_shared<NAX>(file, id)->GetDecrypted();
})) {}
+SDMCFactory::~SDMCFactory() = default;
+
ResultVal<VirtualDir> SDMCFactory::Open() {
return MakeResult<VirtualDir>(dir);
}
diff --git a/src/core/file_sys/sdmc_factory.h b/src/core/file_sys/sdmc_factory.h
index 4eac92621..ea12149de 100644
--- a/src/core/file_sys/sdmc_factory.h
+++ b/src/core/file_sys/sdmc_factory.h
@@ -16,6 +16,7 @@ class RegisteredCache;
class SDMCFactory {
public:
explicit SDMCFactory(VirtualDir dir);
+ ~SDMCFactory();
ResultVal<VirtualDir> Open();
std::shared_ptr<RegisteredCache> GetSDMCContents() const;
diff --git a/src/core/file_sys/xts_archive.cpp b/src/core/file_sys/xts_archive.cpp
index 605c1a283..552835738 100644
--- a/src/core/file_sys/xts_archive.cpp
+++ b/src/core/file_sys/xts_archive.cpp
@@ -2,7 +2,9 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <algorithm>
#include <array>
+#include <cstring>
#include <regex>
#include <string>
#include <mbedtls/md.h>
diff --git a/src/core/file_sys/xts_archive.h b/src/core/file_sys/xts_archive.h
index 5249ad026..55d2154a6 100644
--- a/src/core/file_sys/xts_archive.h
+++ b/src/core/file_sys/xts_archive.h
@@ -8,6 +8,7 @@
#include <vector>
#include "common/common_types.h"
#include "common/swap.h"
+#include "core/crypto/key_manager.h"
#include "core/file_sys/content_archive.h"
#include "core/file_sys/vfs.h"
#include "core/loader/loader.h"