2015-01-30 18:19:11 +01:00
|
|
|
|
#include "stdafx.h"
|
2015-01-29 16:48:05 +01:00
|
|
|
|
#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 "sceNpBasic.h"
|
2015-01-30 18:19:11 +01:00
|
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
|
logs::channel sceNpBasic("sceNpBasic");
|
2016-02-01 22:53:16 +01:00
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
|
s32 sceNpBasicInit(vm::ptr<void> opt)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-08-07 23:37:32 +02:00
|
|
|
|
s32 sceNpBasicTerm(ARMv7Thread&)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
|
s32 sceNpBasicRegisterHandler(vm::cptr<SceNpBasicEventHandlers> handlers, vm::cptr<SceNpCommunicationId> context, vm::ptr<void> userdata)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-08-07 23:37:32 +02:00
|
|
|
|
s32 sceNpBasicUnregisterHandler(ARMv7Thread&)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
s32 sceNpBasicCheckCallback()
|
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-24 13:53:47 +02:00
|
|
|
|
s32 sceNpBasicGetFriendOnlineStatus(vm::cptr<SceNpId> friendId, vm::ptr<s32> status)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
|
s32 sceNpBasicGetGamePresenceOfFriend(vm::cptr<SceNpId> friendId, vm::ptr<SceNpBasicGamePresence> presence)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
|
s32 sceNpBasicGetFriendListEntryCount(vm::ptr<u32> count)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
|
s32 sceNpBasicGetFriendListEntries(u32 startIndex, vm::ptr<SceNpId> entries, u32 numEntries, vm::ptr<u32> retrieved)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
|
s32 sceNpBasicGetBlockListEntryCount(vm::ptr<u32> count)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
|
s32 sceNpBasicGetBlockListEntries(u32 startIndex, vm::ptr<SceNpId> entries, u32 numEntries, vm::ptr<u32> retrieved)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
|
s32 sceNpBasicCheckIfPlayerIsBlocked(vm::cptr<SceNpId> player, vm::ptr<u8> playerIsBlocked)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
|
s32 sceNpBasicSetInGamePresence(vm::cptr<SceNpBasicInGamePresence> presence)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
s32 sceNpBasicUnsetInGamePresence()
|
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
|
s32 sceNpBasicSendInGameDataMessage(vm::cptr<SceNpId> to, vm::cptr<SceNpBasicInGameDataMessage> message)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
|
s32 sceNpBasicRecordPlaySessionLog(vm::cptr<SceNpId> withWhom, vm::cptr<SceNpBasicPlaySessionLogDescription> description)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
|
s32 sceNpBasicGetPlaySessionLogSize(SceNpBasicPlaySessionLogType type, vm::ptr<u32> size)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
|
s32 sceNpBasicGetPlaySessionLog(SceNpBasicPlaySessionLogType type, u32 index, vm::ptr<SceNpBasicPlaySessionLog> log)
|
2015-01-30 18:19:11 +01:00
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
|
#define REG_FUNC(nid, name) REG_FNID(SceNpBasic, nid, name)
|
2015-01-29 16:48:05 +01:00
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
|
DECLARE(arm_module_manager::SceNpBasic)("SceNpBasic", []()
|
2015-01-29 16:48:05 +01:00
|
|
|
|
{
|
2015-01-30 18:19:11 +01:00
|
|
|
|
REG_FUNC(0xEFB91A99, sceNpBasicInit);
|
|
|
|
|
|
REG_FUNC(0x389BCB3B, sceNpBasicTerm);
|
|
|
|
|
|
REG_FUNC(0x26E6E048, sceNpBasicRegisterHandler);
|
|
|
|
|
|
REG_FUNC(0x050AE072, sceNpBasicUnregisterHandler);
|
|
|
|
|
|
REG_FUNC(0x20146AEC, sceNpBasicCheckCallback);
|
|
|
|
|
|
REG_FUNC(0x5183A4B5, sceNpBasicGetFriendOnlineStatus);
|
|
|
|
|
|
REG_FUNC(0xEF8A91BC, sceNpBasicGetGamePresenceOfFriend);
|
|
|
|
|
|
REG_FUNC(0xDF41F308, sceNpBasicGetFriendListEntryCount);
|
|
|
|
|
|
REG_FUNC(0xFF07E787, sceNpBasicGetFriendListEntries);
|
|
|
|
|
|
REG_FUNC(0x407E1E6F, sceNpBasicGetBlockListEntryCount);
|
|
|
|
|
|
REG_FUNC(0x1211AE8E, sceNpBasicGetBlockListEntries);
|
|
|
|
|
|
REG_FUNC(0xF51545D8, sceNpBasicCheckIfPlayerIsBlocked);
|
|
|
|
|
|
REG_FUNC(0x51D75562, sceNpBasicSetInGamePresence);
|
|
|
|
|
|
REG_FUNC(0xD20C2370, sceNpBasicUnsetInGamePresence);
|
|
|
|
|
|
REG_FUNC(0x7A5020A5, sceNpBasicSendInGameDataMessage);
|
|
|
|
|
|
REG_FUNC(0x3B0A7F47, sceNpBasicRecordPlaySessionLog);
|
|
|
|
|
|
REG_FUNC(0xFB0F7FDF, sceNpBasicGetPlaySessionLogSize);
|
|
|
|
|
|
REG_FUNC(0x364531A8, sceNpBasicGetPlaySessionLog);
|
2015-01-29 16:48:05 +01:00
|
|
|
|
});
|