diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 6 | ||||
| -rw-r--r-- | src/core/hle/hle.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index aa5278c8a..0bed78653 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -10,6 +10,9 @@ | |||
| 10 | 10 | ||
| 11 | namespace HLE { | 11 | namespace HLE { |
| 12 | 12 | ||
| 13 | #define PARAM(n) Core::g_app_core->GetReg(n) | ||
| 14 | #define RETURN(n) Core::g_app_core->SetReg(0, n) | ||
| 15 | |||
| 13 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 16 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 14 | // Function wrappers that return type s32 | 17 | // Function wrappers that return type s32 |
| 15 | 18 | ||
| @@ -105,4 +108,7 @@ template<void func(const char*)> void Wrap() { | |||
| 105 | func(Memory::GetCharPointer(PARAM(0))); | 108 | func(Memory::GetCharPointer(PARAM(0))); |
| 106 | } | 109 | } |
| 107 | 110 | ||
| 111 | #undef PARAM | ||
| 112 | #undef RETURN | ||
| 113 | |||
| 108 | } // namespace HLE | 114 | } // namespace HLE |
diff --git a/src/core/hle/hle.h b/src/core/hle/hle.h index 0397da5d9..bf4d84575 100644 --- a/src/core/hle/hle.h +++ b/src/core/hle/hle.h | |||
| @@ -9,11 +9,6 @@ | |||
| 9 | 9 | ||
| 10 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 10 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 11 | 11 | ||
| 12 | #define PARAM(n) Core::g_app_core->GetReg(n) | ||
| 13 | #define RETURN(n) Core::g_app_core->SetReg(0, n) | ||
| 14 | |||
| 15 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 16 | |||
| 17 | namespace HLE { | 12 | namespace HLE { |
| 18 | 13 | ||
| 19 | extern bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread | 14 | extern bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread |