From edb8450420149cc5fa11dfd2fd2c0c3cd20beffa Mon Sep 17 00:00:00 2001 From: Zhuowei Zhang Date: Thu, 1 Jan 2015 21:41:34 -0800 Subject: Add some support for the shared page (currently 3d slider is implemented) --- src/core/hle/shared_page.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/core/hle/shared_page.h (limited to 'src/core/hle/shared_page.h') diff --git a/src/core/hle/shared_page.h b/src/core/hle/shared_page.h new file mode 100644 index 00000000..8f93545e --- /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 +void Read(T &var, const u32 addr); + +void Set3DSlider(float amount); + +void Init(); + +} // namespace -- cgit v1.2.3