summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-14 19:53:45 +0200
committerbunnei <bunneidev@gmail.com>2020-05-11 18:54:30 +0200
commit9c065c013eb677c1b425b82f1af6195acd3058f8 (patch)
treec7e7973e70d5b59bb31339a901dee6d24e2c7d25 /src/core/file_sys
parentMerge pull request #3896 from jroweboy/remove-clang-format-check-from-patreon (diff)
downloadyuzu-9c065c013eb677c1b425b82f1af6195acd3058f8.tar
yuzu-9c065c013eb677c1b425b82f1af6195acd3058f8.tar.gz
yuzu-9c065c013eb677c1b425b82f1af6195acd3058f8.tar.bz2
yuzu-9c065c013eb677c1b425b82f1af6195acd3058f8.tar.lz
yuzu-9c065c013eb677c1b425b82f1af6195acd3058f8.tar.xz
yuzu-9c065c013eb677c1b425b82f1af6195acd3058f8.tar.zst
yuzu-9c065c013eb677c1b425b82f1af6195acd3058f8.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/control_metadata.cpp4
-rw-r--r--src/core/file_sys/control_metadata.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp
index f155a1341..63cd2eead 100644
--- a/src/core/file_sys/control_metadata.cpp
+++ b/src/core/file_sys/control_metadata.cpp
@@ -95,6 +95,10 @@ u32 NACP::GetSupportedLanguages() const {
return raw.supported_languages;
}
+u64 NACP::GetDeviceSaveDataSize() const {
+ return raw.device_save_data_size;
+}
+
std::vector<u8> NACP::GetRawBytes() const {
std::vector<u8> out(sizeof(RawNACP));
std::memcpy(out.data(), &raw, sizeof(RawNACP));
diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h
index 2d8c251ac..e37b2fadf 100644
--- a/src/core/file_sys/control_metadata.h
+++ b/src/core/file_sys/control_metadata.h
@@ -113,6 +113,7 @@ public:
u32 GetSupportedLanguages() const;
std::vector<u8> GetRawBytes() const;
bool GetUserAccountSwitchLock() const;
+ u64 GetDeviceSaveDataSize() const;
private:
RawNACP raw{};