[Kernel] Make XHttpStartup succeed and add stubs for XHttpOpen and XHttpConnect that fail
This commit is contained in:
parent
7b53b1bf22
commit
dbcc155a5c
|
@ -152,13 +152,31 @@ struct XNetStartupParams {
|
||||||
|
|
||||||
XNetStartupParams xnet_startup_params = {0};
|
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
|
// TODO: implement, but for now, 0 == fail : 1 == success
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
DECLARE_XAM_EXPORT1(NetDll_XHttpStartup, kNetworking, kStub);
|
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,
|
dword_result_t NetDll_XNetStartup(dword_t caller,
|
||||||
pointer_t<XNetStartupParams> params) {
|
pointer_t<XNetStartupParams> params) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue