2014-08-15 16:57:55 +02:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/System.h"
|
2016-03-21 20:42:14 +01:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2014-08-23 22:40:04 +02:00
|
|
|
|
2014-08-15 16:57:55 +02:00
|
|
|
#include "sceNp.h"
|
|
|
|
|
#include "sceNpClans.h"
|
|
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel sceNpClans("sceNpClans");
|
2014-08-15 16:57:55 +02:00
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansInit(vm::ptr<SceNpCommunicationId> commId, vm::ptr<SceNpCommunicationPassphrase> passphrase, vm::ptr<void> pool, vm::ptr<u32> poolSize, u32 flags)
|
2014-10-03 15:39:34 +02:00
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
sceNpClans.warning("sceNpClansInit(commId=*0x%x, passphrase=*0x%x, pool=*0x%x, poolSize=*0x%x, flags=0x%x)", commId, passphrase, pool, poolSize, flags);
|
2014-10-03 15:39:34 +02:00
|
|
|
|
|
|
|
|
if (flags != 0)
|
2015-07-26 11:15:15 +02:00
|
|
|
{
|
2014-10-03 15:39:34 +02:00
|
|
|
return SCE_NP_CLANS_ERROR_NOT_SUPPORTED;
|
2015-07-26 11:15:15 +02:00
|
|
|
}
|
2014-10-03 15:39:34 +02:00
|
|
|
|
2014-08-15 16:57:55 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansTerm()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
sceNpClans.warning("sceNpClansTerm()");
|
2014-10-03 15:39:34 +02:00
|
|
|
|
2014-08-15 16:57:55 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-11 01:38:40 +02:00
|
|
|
s32 sceNpClansCreateRequest(vm::ptr<SceNpClansRequestHandle> handle, u64 flags)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
sceNpClans.todo("sceNpClansCreateRequest(handle=*0x%x, flags=0x%llx)", handle, flags);
|
2014-10-03 15:39:34 +02:00
|
|
|
|
|
|
|
|
if (flags != 0)
|
2015-07-26 11:15:15 +02:00
|
|
|
{
|
2014-10-03 15:39:34 +02:00
|
|
|
return SCE_NP_CLANS_ERROR_NOT_SUPPORTED;
|
2015-07-26 11:15:15 +02:00
|
|
|
}
|
2014-10-03 15:39:34 +02:00
|
|
|
|
2014-08-15 16:57:55 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansDestroyRequest(vm::ptr<SceNpClansRequestHandle> handle)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansAbortRequest(vm::ptr<SceNpClansRequestHandle> handle)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansCreateClan(vm::ptr<SceNpClansRequestHandle> handle, vm::cptr<char> name, vm::cptr<char> tag, vm::ptr<u32> clanId)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansDisbandClan(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansGetClanList(vm::ptr<SceNpClansRequestHandle> handle, vm::cptr<SceNpClansPagingRequest> paging, vm::ptr<SceNpClansEntry> clanList, vm::ptr<SceNpClansPagingResult> pageResult)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansGetClanListByNpId()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansSearchByProfile()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansSearchByName()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansGetClanInfo()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansUpdateClanInfo()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansGetMemberList()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansGetMemberInfo()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansUpdateMemberInfo()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansChangeMemberRole()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansGetAutoAcceptStatus()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansUpdateAutoAcceptStatus()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansJoinClan()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansLeaveClan()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansKickMember(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, vm::ptr<u32> npid, vm::ptr<SceNpClansMessage> message)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansSendInvitation(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, vm::ptr<u32> npid, vm::ptr<SceNpClansMessage> message)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansCancelInvitation()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-26 02:53:26 +02:00
|
|
|
s32 sceNpClansSendInvitationResponse(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, vm::ptr<SceNpClansMessage> message, b8 accept)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansSendMembershipRequest(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, vm::ptr<SceNpClansMessage> message)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansCancelMembershipRequest()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansSendMembershipResponse()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansGetBlacklist()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansAddBlacklistEntry()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansRemoveBlacklistEntry()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansRetrieveAnnouncements()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansPostAnnouncement()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansRemoveAnnouncement()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansPostChallenge(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, u32 targetClan, vm::ptr<SceNpClansMessage> message, vm::ptr<SceNpClansMessageData> data, u32 duration, vm::ptr<u32> mId)
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansRetrievePostedChallenges()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansRemovePostedChallenge()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansRetrieveChallenges()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 sceNpClansRemoveChallenge()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-21 20:42:14 +01:00
|
|
|
DECLARE(ppu_module_manager::sceNpClans)("sceNpClans", []()
|
2014-08-15 16:57:55 +02:00
|
|
|
{
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(sceNpClans, sceNpClansInit);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansTerm);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansCreateRequest);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansDestroyRequest);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansAbortRequest);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansCreateClan);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansDisbandClan);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansGetClanList);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansGetClanListByNpId);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansSearchByProfile);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansSearchByName);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansGetClanInfo);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansUpdateClanInfo);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansGetMemberList);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansGetMemberInfo);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansUpdateMemberInfo);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansChangeMemberRole);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansGetAutoAcceptStatus);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansUpdateAutoAcceptStatus);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansJoinClan);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansLeaveClan);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansKickMember);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansSendInvitation);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansCancelInvitation);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansSendInvitationResponse);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansSendMembershipRequest);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansCancelMembershipRequest);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansSendMembershipResponse);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansGetBlacklist);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansAddBlacklistEntry);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansRemoveBlacklistEntry);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansRetrieveAnnouncements);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansPostAnnouncement);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansRemoveAnnouncement);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansPostChallenge);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansRetrievePostedChallenges);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansRemovePostedChallenge);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansRetrieveChallenges);
|
|
|
|
|
REG_FUNC(sceNpClans, sceNpClansRemoveChallenge);
|
2015-02-18 17:22:06 +01:00
|
|
|
});
|