diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-06-21 17:19:24 -0700 |
|---|---|---|
| committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-06-22 00:39:27 -0700 |
| commit | f94093d0fd50e547256643734b67550de538860f (patch) | |
| tree | 1baf48fb477ec6054a376c6afa1a44c700ab5772 /src/core/hle/function_wrappers.h | |
| parent | 72b69cea4bf9d01e520fb984a382de3e85af4e36 (diff) | |
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() { FuncReturn(retval); } +template <ResultCode func(Kernel::Handle*, Kernel::Handle*)> +void Wrap() { + Kernel::Handle param_1 = 0; + Kernel::Handle param_2 = 0; + u32 retval = func(¶m_1, ¶m_2).raw; + Core::CPU().SetReg(1, param_1); + Core::CPU().SetReg(2, param_2); + FuncReturn(retval); +} + //////////////////////////////////////////////////////////////////////////////////////////////////// // Function wrappers that return type u32 |
