summaryrefslogtreecommitdiffstats
path: root/src/core/hle/shared_page.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-19 00:31:52 +0100
committerbunnei <bunneidev@gmail.com>2015-01-19 00:31:52 +0100
commitbe8f6651428b3171b884d2b7f59f7fca260c4a54 (patch)
treef0953139bd9164c5fb72e46da9fa8c69a3c8bea5 /src/core/hle/shared_page.h
parentMerge pull request #489 from lioncash/strt (diff)
parentAdd some support for the shared page (currently 3d slider is implemented) (diff)
downloadyuzu-be8f6651428b3171b884d2b7f59f7fca260c4a54.tar
yuzu-be8f6651428b3171b884d2b7f59f7fca260c4a54.tar.gz
yuzu-be8f6651428b3171b884d2b7f59f7fca260c4a54.tar.bz2
yuzu-be8f6651428b3171b884d2b7f59f7fca260c4a54.tar.lz
yuzu-be8f6651428b3171b884d2b7f59f7fca260c4a54.tar.xz
yuzu-be8f6651428b3171b884d2b7f59f7fca260c4a54.tar.zst
yuzu-be8f6651428b3171b884d2b7f59f7fca260c4a54.zip
Diffstat (limited to 'src/core/hle/shared_page.h')
-rw-r--r--src/core/hle/shared_page.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core/hle/shared_page.h b/src/core/hle/shared_page.h
new file mode 100644
index 000000000..8f93545ec
--- /dev/null
+++ b/src/core/hle/shared_page.h
@@ -0,0 +1,26 @@
+// Copyright 2015 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+/**
+ * The shared page stores various runtime configuration settings. This memory page is
+ * read-only for user processes (there is a bit in the header that grants the process
+ * write access, according to 3dbrew; this is not emulated)
+ */
+
+#include "common/common_types.h"
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+namespace SharedPage {
+
+template <typename T>
+void Read(T &var, const u32 addr);
+
+void Set3DSlider(float amount);
+
+void Init();
+
+} // namespace