diff options
| author | 2014-07-04 23:46:16 -0400 | |
|---|---|---|
| committer | 2014-07-04 23:46:16 -0400 | |
| commit | 3013015a0c7b830c9985e4d3a6b2bd66f15546e2 (patch) | |
| tree | 1b514233226d458efa501d9367cccc11bbe8e700 /src/core/mem_map.h | |
| parent | Merge pull request #26 from bunnei/romfs-archive (diff) | |
| download | yuzu-3013015a0c7b830c9985e4d3a6b2bd66f15546e2.tar.gz yuzu-3013015a0c7b830c9985e4d3a6b2bd66f15546e2.tar.xz yuzu-3013015a0c7b830c9985e4d3a6b2bd66f15546e2.zip | |
mem_map: Updated interface to expose template functions to other modules.
Diffstat (limited to 'src/core/mem_map.h')
| -rw-r--r-- | src/core/mem_map.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h index d5899e4bb..70a8dedcf 100644 --- a/src/core/mem_map.h +++ b/src/core/mem_map.h | |||
| @@ -128,6 +128,12 @@ extern u8* g_exefs_code; ///< ExeFS:/.code is loaded here | |||
| 128 | void Init(); | 128 | void Init(); |
| 129 | void Shutdown(); | 129 | void Shutdown(); |
| 130 | 130 | ||
| 131 | template <typename T> | ||
| 132 | inline void Read(T &var, const u32 addr); | ||
| 133 | |||
| 134 | template <typename T> | ||
| 135 | inline void Write(u32 addr, const T data); | ||
| 136 | |||
| 131 | u8 Read8(const u32 addr); | 137 | u8 Read8(const u32 addr); |
| 132 | u16 Read16(const u32 addr); | 138 | u16 Read16(const u32 addr); |
| 133 | u32 Read32(const u32 addr); | 139 | u32 Read32(const u32 addr); |