diff options
| author | 2017-06-23 11:18:49 -0700 | |
|---|---|---|
| committer | 2017-06-23 11:18:49 -0700 | |
| commit | 6d436d7a5244ce54ae8ff7990cf8b90e9ea70355 (patch) | |
| tree | 139073bfa7dc1a7de4ba4a66d7caf715ff2194f1 /src/core/hle/function_wrappers.h | |
| parent | Merge pull request #2795 from chris062689/master (diff) | |
| parent | Kernel: Implement CreateSession SVC (diff) | |
| download | yuzu-6d436d7a5244ce54ae8ff7990cf8b90e9ea70355.tar.gz yuzu-6d436d7a5244ce54ae8ff7990cf8b90e9ea70355.tar.xz yuzu-6d436d7a5244ce54ae8ff7990cf8b90e9ea70355.zip | |
Merge pull request #2798 from yuriks/svc-create-session
Kernel: Implement CreateSession SVC
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 18b6e7017..b19b64509 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -232,6 +232,16 @@ void Wrap() { | |||
| 232 | FuncReturn(retval); | 232 | FuncReturn(retval); |
| 233 | } | 233 | } |
| 234 | 234 | ||
| 235 | template <ResultCode func(Kernel::Handle*, Kernel::Handle*)> | ||
| 236 | void Wrap() { | ||
| 237 | Kernel::Handle param_1 = 0; | ||
| 238 | Kernel::Handle param_2 = 0; | ||
| 239 | u32 retval = func(¶m_1, ¶m_2).raw; | ||
| 240 | Core::CPU().SetReg(1, param_1); | ||
| 241 | Core::CPU().SetReg(2, param_2); | ||
| 242 | FuncReturn(retval); | ||
| 243 | } | ||
| 244 | |||
| 235 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 245 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 236 | // Function wrappers that return type u32 | 246 | // Function wrappers that return type u32 |
| 237 | 247 | ||