diff options
| author | 2015-05-14 20:40:53 -0700 | |
|---|---|---|
| committer | 2015-05-14 20:40:53 -0700 | |
| commit | bb689338943791c735c7c6adb186256457e064b4 (patch) | |
| tree | a04ba64d18dd163709b1cb4b4212afaca6c091a6 /src/core/hle/function_wrappers.h | |
| parent | Merge pull request #769 from lioncash/cond (diff) | |
| parent | Memory: Use a table based lookup scheme to read from memory regions (diff) | |
| download | yuzu-bb689338943791c735c7c6adb186256457e064b4.tar.gz yuzu-bb689338943791c735c7c6adb186256457e064b4.tar.xz yuzu-bb689338943791c735c7c6adb186256457e064b4.zip | |
Merge pull request #762 from yuriks/memmap
Memory: Use a table based lookup scheme to read from memory regions
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index be2626eef..eb52c8fb1 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | 8 | ||
| 9 | #include "core/arm/arm_interface.h" | 9 | #include "core/arm/arm_interface.h" |
| 10 | #include "core/mem_map.h" | 10 | #include "core/memory.h" |
| 11 | #include "core/hle/hle.h" | 11 | #include "core/hle/hle.h" |
| 12 | 12 | ||
| 13 | namespace HLE { | 13 | namespace HLE { |
| @@ -109,7 +109,7 @@ template<ResultCode func(s64*, u32, void*, s32)> void Wrap(){ | |||
| 109 | 109 | ||
| 110 | template<ResultCode func(u32*, const char*)> void Wrap() { | 110 | template<ResultCode func(u32*, const char*)> void Wrap() { |
| 111 | u32 param_1 = 0; | 111 | u32 param_1 = 0; |
| 112 | u32 retval = func(¶m_1, Memory::GetCharPointer(PARAM(1))).raw; | 112 | u32 retval = func(¶m_1, (char*)Memory::GetPointer(PARAM(1))).raw; |
| 113 | Core::g_app_core->SetReg(1, param_1); | 113 | Core::g_app_core->SetReg(1, param_1); |
| 114 | FuncReturn(retval); | 114 | FuncReturn(retval); |
| 115 | } | 115 | } |
| @@ -163,7 +163,7 @@ template<void func(s64)> void Wrap() { | |||
| 163 | } | 163 | } |
| 164 | 164 | ||
| 165 | template<void func(const char*)> void Wrap() { | 165 | template<void func(const char*)> void Wrap() { |
| 166 | func(Memory::GetCharPointer(PARAM(0))); | 166 | func((char*)Memory::GetPointer(PARAM(0))); |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | #undef PARAM | 169 | #undef PARAM |