From 424824638729692c20e27f82b15d455b52e9c90d Mon Sep 17 00:00:00 2001 From: Cancerous Date: Thu, 9 Jan 2020 22:07:31 -0500 Subject: [PATCH] [Kernel] Make XHttpStartup succeed and add stubs for XHttpOpen and XHttpConnect that fail --- src/xenia/kernel/xam/xam_net.cc | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/xenia/kernel/xam/xam_net.cc b/src/xenia/kernel/xam/xam_net.cc index ba65f71df..51f113986 100644 --- a/src/xenia/kernel/xam/xam_net.cc +++ b/src/xenia/kernel/xam/xam_net.cc @@ -152,13 +152,31 @@ struct XNetStartupParams { XNetStartupParams xnet_startup_params = {0}; -int_result_t NetDll_XHttpStartup(dword_t unknown1, dword_t unknown2) +int_result_t NetDll_XHttpStartup(dword_t unknown1) { - // TODO: implement, but return 0 (fail) for now, 1 = success - return 0; + // TODO: implement, but for now, 0 == fail : 1 == success + return 1; } DECLARE_XAM_EXPORT1(NetDll_XHttpStartup, kNetworking, kStub); +dword_result_t NetDll_XHttpOpen(dword_t unknown1) +{ + // TODO: implement, but fail for now + // WSAENOTSOCK + XThread::SetLastError(0x2736); + return NULL; +} +DECLARE_XAM_EXPORT1(NetDll_XHttpOpen, kNetworking, kStub); + +dword_result_t NetDll_XHttpConnect(dword_t unknown1) +{ + // TODO: implement, but fail for now + // WSAENOTSOCK + XThread::SetLastError(0x2736); + return NULL; +} +DECLARE_XAM_EXPORT1(NetDll_XHttpConnect, kNetworking, kStub); + dword_result_t NetDll_XNetStartup(dword_t caller, pointer_t params) {