2015-01-29 16:48:05 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/System.h"
|
2016-05-13 12:17:26 +02:00
|
|
|
#include "Emu/PSP2/ARMv7Module.h"
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
#include "sceNetCtl.h"
|
2015-01-30 11:48:12 +01:00
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel sceNetCtl("sceNetCtl");
|
2016-02-01 22:53:16 +01:00
|
|
|
|
2015-01-30 11:48:12 +01:00
|
|
|
s32 sceNetCtlInit()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void sceNetCtlTerm()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceNetCtlCheckCallback()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlInetGetResult(s32 eventType, vm::ptr<s32> errorCode)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlAdhocGetResult(s32 eventType, vm::ptr<s32> errorCode)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlInetGetInfo(s32 code, vm::ptr<SceNetCtlInfo> info)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlInetGetState(vm::ptr<s32> state)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlGetNatInfo(vm::ptr<SceNetCtlNatInfo> natinfo)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlInetRegisterCallback(vm::ptr<SceNetCtlCallback> func, vm::ptr<void> arg, vm::ptr<s32> cid)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceNetCtlInetUnregisterCallback(s32 cid)
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlAdhocRegisterCallback(vm::ptr<SceNetCtlCallback> func, vm::ptr<void> arg, vm::ptr<s32> cid)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceNetCtlAdhocUnregisterCallback(s32 cid)
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlAdhocGetState(vm::ptr<s32> state)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceNetCtlAdhocDisconnect()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlAdhocGetPeerList(vm::ptr<u32> buflen, vm::ptr<void> buf)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNetCtlAdhocGetInAddr(vm::ptr<SceNetInAddr> inaddr)
|
2015-01-30 11:48:12 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 11:48:12 +01:00
|
|
|
}
|
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
#define REG_FUNC(nid, name) REG_FNID(SceNetCtl, nid, name)
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
DECLARE(arm_module_manager::SceNetCtl)("SceNetCtl", []()
|
2015-01-29 16:48:05 +01:00
|
|
|
{
|
2015-01-30 11:48:12 +01:00
|
|
|
REG_FUNC(0x495CA1DB, sceNetCtlInit);
|
|
|
|
|
REG_FUNC(0xCD188648, sceNetCtlTerm);
|
|
|
|
|
REG_FUNC(0xDFFC3ED4, sceNetCtlCheckCallback);
|
|
|
|
|
REG_FUNC(0x6B20EC02, sceNetCtlInetGetResult);
|
|
|
|
|
REG_FUNC(0x7AE0ED19, sceNetCtlAdhocGetResult);
|
|
|
|
|
REG_FUNC(0xB26D07F3, sceNetCtlInetGetInfo);
|
|
|
|
|
REG_FUNC(0x6D26AC68, sceNetCtlInetGetState);
|
|
|
|
|
REG_FUNC(0xEAEE6185, sceNetCtlInetRegisterCallback);
|
|
|
|
|
REG_FUNC(0xD0C3BF3F, sceNetCtlInetUnregisterCallback);
|
|
|
|
|
REG_FUNC(0x4DDD6149, sceNetCtlGetNatInfo);
|
|
|
|
|
REG_FUNC(0x0961A561, sceNetCtlAdhocGetState);
|
|
|
|
|
REG_FUNC(0xFFA9D594, sceNetCtlAdhocRegisterCallback);
|
|
|
|
|
REG_FUNC(0xA4471E10, sceNetCtlAdhocUnregisterCallback);
|
|
|
|
|
REG_FUNC(0xED43B79A, sceNetCtlAdhocDisconnect);
|
|
|
|
|
REG_FUNC(0x77586C59, sceNetCtlAdhocGetPeerList);
|
|
|
|
|
REG_FUNC(0x7118C99D, sceNetCtlAdhocGetInAddr);
|
2015-01-29 16:48:05 +01:00
|
|
|
});
|