diff options
| author | 2014-12-08 23:52:27 -0500 | |
|---|---|---|
| committer | 2014-12-31 10:51:44 -0500 | |
| commit | 97a7381d29b69dbe760598e70669c16573304ad4 (patch) | |
| tree | f4e336af1e5cf5d72c2665470a96a9db73711ae7 /src/core/hle/function_wrappers.h | |
| parent | Merge pull request #375 from lioncash/uops (diff) | |
| download | yuzu-97a7381d29b69dbe760598e70669c16573304ad4.tar.gz yuzu-97a7381d29b69dbe760598e70669c16573304ad4.tar.xz yuzu-97a7381d29b69dbe760598e70669c16573304ad4.zip | |
SOC_U: Preliminary implementation of sockets.
Stubbed CreateMemoryBlock
Using Berkeley sockets, and Winsock2.2 on Windows.
So far ftpony creates the socket and accepts incoming connections
SOC_U: Renamed functions to maintain consistency
Also prevents possible scope errors / conflicts with the actual Berkeley socket functions
SOCU: Close all the opened sockets when cleaning up SOCU
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 3259ce9eb..0f822f84b 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -128,6 +128,13 @@ template<s32 func(s32*, u32, s32)> void Wrap() { | |||
| 128 | FuncReturn(retval); | 128 | FuncReturn(retval); |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | template<s32 func(u32*, u32, u32, u32, u32)> void Wrap() { | ||
| 132 | u32 param_1 = 0; | ||
| 133 | u32 retval = func(¶m_1, PARAM(1), PARAM(2), PARAM(3), PARAM(4)); | ||
| 134 | Core::g_app_core->SetReg(1, param_1); | ||
| 135 | FuncReturn(retval); | ||
| 136 | } | ||
| 137 | |||
| 131 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 138 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 132 | // Function wrappers that return type u32 | 139 | // Function wrappers that return type u32 |
| 133 | 140 | ||