diff options
| author | 2015-01-01 21:41:34 -0800 | |
|---|---|---|
| committer | 2015-01-15 22:16:13 -0500 | |
| commit | edb8450420149cc5fa11dfd2fd2c0c3cd20beffa (patch) | |
| tree | 00f7e56449ae0a64f80b9573a2f2e2ade7457ff5 /src/core/hle/shared_page.h | |
| parent | Merge pull request #441 from Kingcom/CallStack (diff) | |
| download | yuzu-edb8450420149cc5fa11dfd2fd2c0c3cd20beffa.tar.gz yuzu-edb8450420149cc5fa11dfd2fd2c0c3cd20beffa.tar.xz yuzu-edb8450420149cc5fa11dfd2fd2c0c3cd20beffa.zip | |
Add some support for the shared page (currently 3d slider is implemented)
Diffstat (limited to 'src/core/hle/shared_page.h')
| -rw-r--r-- | src/core/hle/shared_page.h | 26 |
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 @@ | |||
| 1 | // Copyright 2015 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | /** | ||
| 8 | * The shared page stores various runtime configuration settings. This memory page is | ||
| 9 | * read-only for user processes (there is a bit in the header that grants the process | ||
| 10 | * write access, according to 3dbrew; this is not emulated) | ||
| 11 | */ | ||
| 12 | |||
| 13 | #include "common/common_types.h" | ||
| 14 | |||
| 15 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 16 | |||
| 17 | namespace SharedPage { | ||
| 18 | |||
| 19 | template <typename T> | ||
| 20 | void Read(T &var, const u32 addr); | ||
| 21 | |||
| 22 | void Set3DSlider(float amount); | ||
| 23 | |||
| 24 | void Init(); | ||
| 25 | |||
| 26 | } // namespace | ||