From 8678becda679da7a475be5e0e91f92296b09cbfd Mon Sep 17 00:00:00 2001 From: Adrian <78108584+AdrianCassar@users.noreply.github.com> Date: Sun, 12 Mar 2023 17:20:06 +0000 Subject: [PATCH] [XAM] StartupEx --- src/xenia/kernel/xam/xam_net.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/xenia/kernel/xam/xam_net.cc b/src/xenia/kernel/xam/xam_net.cc index ae5cce6b2..68c829d49 100644 --- a/src/xenia/kernel/xam/xam_net.cc +++ b/src/xenia/kernel/xam/xam_net.cc @@ -191,6 +191,17 @@ dword_result_t NetDll_XNetStartup_entry(dword_t caller, } DECLARE_XAM_EXPORT1(NetDll_XNetStartup, kNetworking, kImplemented); +// https://github.com/jogolden/testdev/blob/master/xkelib/syssock.h#L46 +dword_result_t NetDll_XNetStartupEx_entry(dword_t caller, + pointer_t params, + dword_t versionReq) { + // versionReq + // MW3, Ghosts: 0x20501400 + + return NetDll_XNetStartup_entry(caller, params); +} +DECLARE_XAM_EXPORT1(NetDll_XNetStartupEx, kNetworking, kImplemented); + dword_result_t NetDll_XNetCleanup_entry(dword_t caller, lpvoid_t params) { auto xam = kernel_state()->GetKernelModule("xam.xex"); // auto xnet = xam->xnet(); @@ -282,6 +293,13 @@ dword_result_t NetDll_WSAStartup_entry(dword_t caller, word_t version, } DECLARE_XAM_EXPORT1(NetDll_WSAStartup, kNetworking, kImplemented); +dword_result_t NetDll_WSAStartupEx_entry(dword_t caller, word_t version, + pointer_t data_ptr, + dword_t versionReq) { + return NetDll_WSAStartup_entry(caller, version, data_ptr); +} +DECLARE_XAM_EXPORT1(NetDll_WSAStartupEx, kNetworking, kImplemented); + dword_result_t NetDll_WSACleanup_entry(dword_t caller) { // This does nothing. Xenia needs WSA running. return 0;