rpcsx/rpcs3/Emu/PSP2/Modules/sceNpUtility.cpp

156 lines
4.2 KiB
C++
Raw Normal View History

#include "stdafx.h"
#include "Emu/System.h"
2016-05-13 12:17:26 +02:00
#include "Emu/PSP2/ARMv7Module.h"
2015-06-21 01:04:01 +02:00
#include "sceNpUtility.h"
2015-01-30 18:19:11 +01:00
2017-05-13 20:30:37 +02:00
logs::channel sceNpUtility("sceNpUtility");
2016-02-01 22:53:16 +01:00
2015-06-21 01:04:01 +02:00
s32 sceNpLookupInit(s32 usesAsync, s32 threadPriority, s32 cpuAffinityMask, vm::ptr<void> option)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupTerm(ARMv7Thread&)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupCreateTitleCtx(vm::cptr<SceNpCommunicationId> titleId, vm::cptr<SceNpId> selfNpId)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupDeleteTitleCtx(s32 titleCtxId)
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupCreateRequest(s32 titleCtxId)
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupDeleteRequest(s32 reqId)
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupAbortRequest(s32 reqId)
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupSetTimeout(s32 id, s32 resolveRetry, u32 resolveTimeout, u32 connTimeout, u32 sendTimeout, u32 recvTimeout)
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceNpLookupWaitAsync(s32 reqId, vm::ptr<s32> result)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceNpLookupPollAsync(s32 reqId, vm::ptr<s32> result)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupNpId(s32 reqId, vm::cptr<SceNpOnlineId> onlineId, vm::ptr<SceNpId> npId, vm::ptr<void> option)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupNpIdAsync(s32 reqId, vm::cptr<SceNpOnlineId> onlineId, vm::ptr<SceNpId> npId, vm::ptr<void> option)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupUserProfile(
s32 reqId,
s32 avatarSizeType,
vm::cptr<SceNpId> npId,
2015-06-21 01:04:01 +02:00
vm::ptr<SceNpUserInformation> userInfo,
vm::ptr<SceNpAboutMe> aboutMe,
vm::ptr<SceNpMyLanguages> languages,
vm::ptr<SceNpCountryCode> countryCode,
vm::ptr<void> avatarImageData,
2015-01-30 18:19:11 +01:00
u32 avatarImageDataMaxSize,
2015-06-21 01:04:01 +02:00
vm::ptr<u32> avatarImageDataSize,
vm::ptr<void> option)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupUserProfileAsync(
s32 reqId,
s32 avatarSizeType,
vm::cptr<SceNpId> npId,
2015-06-21 01:04:01 +02:00
vm::ptr<SceNpUserInformation> userInfo,
vm::ptr<SceNpAboutMe> aboutMe,
vm::ptr<SceNpMyLanguages> languages,
vm::ptr<SceNpCountryCode> countryCode,
vm::ptr<void> avatarImageData,
2015-01-30 18:19:11 +01:00
u32 avatarImageDataMaxSize,
2015-06-21 01:04:01 +02:00
vm::ptr<u32> avatarImageDataSize,
vm::ptr<void> option)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupAvatarImage(s32 reqId, vm::cptr<SceNpAvatarUrl> avatarUrl, vm::ptr<SceNpAvatarImage> avatarImage, vm::ptr<void> option)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpLookupAvatarImageAsync(s32 reqId, vm::cptr<SceNpAvatarUrl> avatarUrl, vm::ptr<SceNpAvatarImage> avatarImage, vm::ptr<void> option)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpBandwidthTestInitStart(s32 initPriority, s32 cpuAffinityMask)
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpBandwidthTestGetStatus()
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceNpBandwidthTestShutdown(vm::ptr<SceNpBandwidthTestResult> result)
2015-01-30 18:19:11 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 18:19:11 +01:00
}
s32 sceNpBandwidthTestAbort()
{
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(SceNpUtility, nid, name)
2016-02-01 22:53:16 +01:00
DECLARE(arm_module_manager::SceNpUtility)("SceNpUtility", []()
{
2015-01-30 18:19:11 +01:00
REG_FUNC(0x9246A673, sceNpLookupInit);
REG_FUNC(0x0158B61B, sceNpLookupTerm);
REG_FUNC(0x5110E17E, sceNpLookupCreateTitleCtx);
REG_FUNC(0x33B64699, sceNpLookupDeleteTitleCtx);
REG_FUNC(0x9E42E922, sceNpLookupCreateRequest);
REG_FUNC(0x8B608BF6, sceNpLookupDeleteRequest);
REG_FUNC(0x027587C4, sceNpLookupAbortRequest);
REG_FUNC(0xB0C9DC45, sceNpLookupSetTimeout);
REG_FUNC(0xCF956F23, sceNpLookupWaitAsync);
REG_FUNC(0xFCDBA234, sceNpLookupPollAsync);
REG_FUNC(0xB1A14879, sceNpLookupNpId);
REG_FUNC(0x5387BABB, sceNpLookupNpIdAsync);
REG_FUNC(0x6A1BF429, sceNpLookupUserProfile);
REG_FUNC(0xE5285E0F, sceNpLookupUserProfileAsync);
REG_FUNC(0xFDB0AE47, sceNpLookupAvatarImage);
REG_FUNC(0x282BD43C, sceNpLookupAvatarImageAsync);
REG_FUNC(0x081FA13C, sceNpBandwidthTestInitStart);
REG_FUNC(0xE0EBFBF6, sceNpBandwidthTestGetStatus);
REG_FUNC(0x58D92EFD, sceNpBandwidthTestShutdown);
REG_FUNC(0x32B068C4, sceNpBandwidthTestAbort);
});