summaryrefslogtreecommitdiffstats
path: root/src/common/memory_detect.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-05-17 20:45:12 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-05-17 20:45:12 +0200
commit9a36d8600c0b263b4b3861b64051a4f62b4251d2 (patch)
tree65714fc37ebf294332c533db8b2dcefb67ef2562 /src/common/memory_detect.h
parentMerge pull request #3665 from bunnei/device-save (diff)
downloadyuzu-9a36d8600c0b263b4b3861b64051a4f62b4251d2.tar
yuzu-9a36d8600c0b263b4b3861b64051a4f62b4251d2.tar.gz
yuzu-9a36d8600c0b263b4b3861b64051a4f62b4251d2.tar.bz2
yuzu-9a36d8600c0b263b4b3861b64051a4f62b4251d2.tar.lz
yuzu-9a36d8600c0b263b4b3861b64051a4f62b4251d2.tar.xz
yuzu-9a36d8600c0b263b4b3861b64051a4f62b4251d2.tar.zst
yuzu-9a36d8600c0b263b4b3861b64051a4f62b4251d2.zip
Diffstat (limited to '')
-rw-r--r--src/common/memory_detect.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/common/memory_detect.h b/src/common/memory_detect.h
new file mode 100644
index 000000000..a73c0f3f4
--- /dev/null
+++ b/src/common/memory_detect.h
@@ -0,0 +1,22 @@
+// Copyright 2020 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "common/common_types.h"
+
+namespace Common {
+
+struct MemoryInfo {
+ u64 TotalPhysicalMemory{};
+ u64 TotalSwapMemory{};
+};
+
+/**
+ * Gets the memory info of the host system
+ * @return Reference to a MemoryInfo struct with the physical and swap memory sizes in bytes
+ */
+const MemoryInfo& GetMemInfo();
+
+} // namespace Common \ No newline at end of file