mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-01 16:13:23 +00:00
Merge pull request #828 from Survanium90/master
Added initialization checks in SceNpClans module
This commit is contained in:
commit
ad4b0f092b
@ -53,18 +53,30 @@ int cellCameraOpen()
|
|||||||
int cellCameraOpenEx()
|
int cellCameraOpenEx()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraClose()
|
int cellCameraClose()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraGetDeviceGUID()
|
int cellCameraGetDeviceGUID()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,6 +84,9 @@ int cellCameraGetType(s32 dev_num, vm::ptr<CellCameraType> type)
|
|||||||
{
|
{
|
||||||
cellCamera->Warning("cellCameraGetType(dev_num=%d, type_addr=0x%x)", dev_num, type);
|
cellCamera->Warning("cellCameraGetType(dev_num=%d, type_addr=0x%x)", dev_num, type);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
switch (Ini.CameraType.GetValue())
|
switch (Ini.CameraType.GetValue())
|
||||||
{
|
{
|
||||||
case 1: *type = CELL_CAMERA_EYETOY; break;
|
case 1: *type = CELL_CAMERA_EYETOY; break;
|
||||||
@ -110,18 +125,30 @@ int cellCameraIsStarted()
|
|||||||
int cellCameraGetAttribute()
|
int cellCameraGetAttribute()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraSetAttribute()
|
int cellCameraSetAttribute()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraGetBufferSize()
|
int cellCameraGetBufferSize()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,6 +161,10 @@ int cellCameraGetBufferInfo()
|
|||||||
int cellCameraGetBufferInfoEx()
|
int cellCameraGetBufferInfoEx()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -164,60 +195,100 @@ int cellCameraSetExtensionUnit()
|
|||||||
int cellCameraReset()
|
int cellCameraReset()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraStart()
|
int cellCameraStart()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraRead()
|
int cellCameraRead()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraReadEx()
|
int cellCameraReadEx()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraReadComplete()
|
int cellCameraReadComplete()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraStop()
|
int cellCameraStop()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraSetNotifyEventQueue()
|
int cellCameraSetNotifyEventQueue()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraRemoveNotifyEventQueue()
|
int cellCameraRemoveNotifyEventQueue()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraSetNotifyEventQueue2()
|
int cellCameraSetNotifyEventQueue2()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cellCameraRemoveNotifyEventQueue2()
|
int cellCameraRemoveNotifyEventQueue2()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(cellCamera);
|
UNIMPLEMENTED_FUNC(cellCamera);
|
||||||
|
|
||||||
|
if (!cellCameraInstance.m_bInitialized)
|
||||||
|
return CELL_CAMERA_ERROR_NOT_INIT;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,243 +8,428 @@
|
|||||||
|
|
||||||
Module *sceNpClans = nullptr;
|
Module *sceNpClans = nullptr;
|
||||||
|
|
||||||
int sceNpClansInit()
|
struct sceNpClansInternal
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
bool m_bSceNpClansInitialized;
|
||||||
|
|
||||||
|
sceNpClansInternal()
|
||||||
|
: m_bSceNpClansInitialized(false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
sceNpClansInternal sceNpClansInstance;
|
||||||
|
|
||||||
|
int sceNpClansInit(vm::ptr<SceNpCommunicationId> commId, vm::ptr<SceNpCommunicationPassphrase> passphrase, vm::ptr<void> pool, vm::ptr<u32> poolSize, u32 flags)
|
||||||
|
{
|
||||||
|
sceNpClans->Warning("sceNpClansInit(commId_addr=0x%x, passphrase_addr=0x%x, pool_addr=0x%x,poolSize_addr=0x%x, flags=%d)", commId.addr(), passphrase.addr(), pool.addr(), poolSize.addr(), flags);
|
||||||
|
|
||||||
|
if (sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_ALREADY_INITIALIZED;
|
||||||
|
|
||||||
|
if (flags != 0)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_SUPPORTED;
|
||||||
|
|
||||||
|
sceNpClansInstance.m_bSceNpClansInitialized = true;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansTerm()
|
int sceNpClansTerm()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
sceNpClans->Warning("sceNpClansTerm()");
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
|
sceNpClansInstance.m_bSceNpClansInitialized = false;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansCreateRequest()
|
int sceNpClansCreateRequest(vm::ptr<SceNpClansRequestHandle> handle,u64 flags)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
sceNpClans->Todo("sceNpClansCreateRequest(handle_addr=0x%x, flags=0x%llx)", handle.addr(), flags);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
|
if (flags != 0)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_SUPPORTED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansDestroyRequest()
|
int sceNpClansDestroyRequest(vm::ptr<SceNpClansRequestHandle> handle)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansAbortRequest()
|
int sceNpClansAbortRequest(vm::ptr<SceNpClansRequestHandle> handle)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansCreateClan()
|
int sceNpClansCreateClan(vm::ptr<SceNpClansRequestHandle> handle, vm::ptr<const char> name, vm::ptr<const char> tag, vm::ptr<u32> clanId)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansDisbandClan()
|
int sceNpClansDisbandClan(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansGetClanList()
|
int sceNpClansGetClanList(vm::ptr<SceNpClansRequestHandle> handle, vm::ptr<const SceNpClansPagingRequest> paging, vm::ptr<SceNpClansEntry> clanList, vm::ptr<SceNpClansPagingResult> pageResult)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansGetClanListByNpId()
|
int sceNpClansGetClanListByNpId()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansSearchByProfile()
|
int sceNpClansSearchByProfile()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansSearchByName()
|
int sceNpClansSearchByName()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansGetClanInfo()
|
int sceNpClansGetClanInfo()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansUpdateClanInfo()
|
int sceNpClansUpdateClanInfo()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansGetMemberList()
|
int sceNpClansGetMemberList()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansGetMemberInfo()
|
int sceNpClansGetMemberInfo()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansUpdateMemberInfo()
|
int sceNpClansUpdateMemberInfo()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansChangeMemberRole()
|
int sceNpClansChangeMemberRole()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansGetAutoAcceptStatus()
|
int sceNpClansGetAutoAcceptStatus()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansUpdateAutoAcceptStatus()
|
int sceNpClansUpdateAutoAcceptStatus()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansJoinClan()
|
int sceNpClansJoinClan()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansLeaveClan()
|
int sceNpClansLeaveClan()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansKickMember()
|
int sceNpClansKickMember(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, vm::ptr<u32> npid, vm::ptr<SceNpClansMessage> message)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansSendInvitation()
|
int sceNpClansSendInvitation(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, vm::ptr<u32> npid, vm::ptr<SceNpClansMessage> message)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansCancelInvitation()
|
int sceNpClansCancelInvitation()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansSendInvitationResponse()
|
int sceNpClansSendInvitationResponse(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, vm::ptr<SceNpClansMessage> message, bool accept)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansSendMembershipRequest()
|
int sceNpClansSendMembershipRequest(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, vm::ptr<SceNpClansMessage> message)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansCancelMembershipRequest()
|
int sceNpClansCancelMembershipRequest()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansSendMembershipResponse()
|
int sceNpClansSendMembershipResponse()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansGetBlacklist()
|
int sceNpClansGetBlacklist()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansAddBlacklistEntry()
|
int sceNpClansAddBlacklistEntry()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansRemoveBlacklistEntry()
|
int sceNpClansRemoveBlacklistEntry()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansRetrieveAnnouncements()
|
int sceNpClansRetrieveAnnouncements()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansPostAnnouncement()
|
int sceNpClansPostAnnouncement()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansRemoveAnnouncement()
|
int sceNpClansRemoveAnnouncement()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansPostChallenge()
|
int sceNpClansPostChallenge(vm::ptr<SceNpClansRequestHandle> handle, u32 clanId, u32 targetClan, vm::ptr<SceNpClansMessage> message, vm::ptr<SceNpClansMessageData> data, u32 duration, vm::ptr<u32> mId)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
|
if (data != 0)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_SUPPORTED;
|
||||||
|
|
||||||
|
//todo
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansRetrievePostedChallenges()
|
int sceNpClansRetrievePostedChallenges()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
|
//todo
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansRemovePostedChallenge()
|
int sceNpClansRemovePostedChallenge()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansRetrieveChallenges()
|
int sceNpClansRetrieveChallenges()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpClansRemoveChallenge()
|
int sceNpClansRemoveChallenge()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpClans);
|
UNIMPLEMENTED_FUNC(sceNpClans);
|
||||||
|
|
||||||
|
if (!sceNpClansInstance.m_bSceNpClansInitialized)
|
||||||
|
return SCE_NP_CLANS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sceNpClans_unload()
|
void sceNpClans_unload()
|
||||||
{
|
{
|
||||||
// TODO: Unload Clans module
|
sceNpClansInstance.m_bSceNpClansInitialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sceNpClans_init(Module *pxThis)
|
void sceNpClans_init(Module *pxThis)
|
||||||
|
@ -7,333 +7,565 @@
|
|||||||
|
|
||||||
Module *sceNpTus = nullptr;
|
Module *sceNpTus = nullptr;
|
||||||
|
|
||||||
|
struct sceNpTusInternal
|
||||||
|
{
|
||||||
|
bool m_bSceNpTusInitialized;
|
||||||
|
|
||||||
|
sceNpTusInternal()
|
||||||
|
: m_bSceNpTusInitialized(false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
sceNpTusInternal sceNpTusInstance;
|
||||||
|
|
||||||
int sceNpTusInit()
|
int sceNpTusInit()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
sceNpTus->Warning("sceNpTusInit()");
|
||||||
|
|
||||||
|
if (sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_ALREADY_INITIALIZED;
|
||||||
|
|
||||||
|
sceNpTusInstance.m_bSceNpTusInitialized = true;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusTerm()
|
int sceNpTusTerm()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
sceNpTus->Warning("sceNpTusTerm()");
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
|
sceNpTusInstance.m_bSceNpTusInitialized = false;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusCreateTitleCtx()
|
int sceNpTusCreateTitleCtx()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDestroyTitleCtx()
|
int sceNpTusDestroyTitleCtx()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusCreateTransactionCtx()
|
int sceNpTusCreateTransactionCtx()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDestroyTransactionCtx()
|
int sceNpTusDestroyTransactionCtx()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetTimeout()
|
int sceNpTusSetTimeout()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusAbortTransaction()
|
int sceNpTusAbortTransaction()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusWaitAsync()
|
int sceNpTusWaitAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusPollAsync()
|
int sceNpTusPollAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetMultiSlotVariable()
|
int sceNpTusSetMultiSlotVariable()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetMultiSlotVariableVUser()
|
int sceNpTusSetMultiSlotVariableVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetMultiSlotVariableAsync()
|
int sceNpTusSetMultiSlotVariableAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetMultiSlotVariableVUserAsync()
|
int sceNpTusSetMultiSlotVariableVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiSlotVariable()
|
int sceNpTusGetMultiSlotVariable()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiSlotVariableVUser()
|
int sceNpTusGetMultiSlotVariableVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiSlotVariableAsync()
|
int sceNpTusGetMultiSlotVariableAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiSlotVariableVUserAsync()
|
int sceNpTusGetMultiSlotVariableVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiUserVariable()
|
int sceNpTusGetMultiUserVariable()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiUserVariableVUser()
|
int sceNpTusGetMultiUserVariableVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiUserVariableAsync()
|
int sceNpTusGetMultiUserVariableAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiUserVariableVUserAsync()
|
int sceNpTusGetMultiUserVariableVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusAddAndGetVariable()
|
int sceNpTusAddAndGetVariable()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusAddAndGetVariableVUser()
|
int sceNpTusAddAndGetVariableVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusAddAndGetVariableAsync()
|
int sceNpTusAddAndGetVariableAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusAddAndGetVariableVUserAsync()
|
int sceNpTusAddAndGetVariableVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusTryAndSetVariable()
|
int sceNpTusTryAndSetVariable()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusTryAndSetVariableVUser()
|
int sceNpTusTryAndSetVariableVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusTryAndSetVariableAsync()
|
int sceNpTusTryAndSetVariableAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusTryAndSetVariableVUserAsync()
|
int sceNpTusTryAndSetVariableVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDeleteMultiSlotVariable()
|
int sceNpTusDeleteMultiSlotVariable()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDeleteMultiSlotVariableVUser()
|
int sceNpTusDeleteMultiSlotVariableVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDeleteMultiSlotVariableAsync()
|
int sceNpTusDeleteMultiSlotVariableAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDeleteMultiSlotVariableVUserAsync()
|
int sceNpTusDeleteMultiSlotVariableVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetData()
|
int sceNpTusSetData()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetDataVUser()
|
int sceNpTusSetDataVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetDataAsync()
|
int sceNpTusSetDataAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusSetDataVUserAsync()
|
int sceNpTusSetDataVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetData()
|
int sceNpTusGetData()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetDataVUser()
|
int sceNpTusGetDataVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetDataAsync()
|
int sceNpTusGetDataAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetDataVUserAsync()
|
int sceNpTusGetDataVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiSlotDataStatus()
|
int sceNpTusGetMultiSlotDataStatus()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiSlotDataStatusVUser()
|
int sceNpTusGetMultiSlotDataStatusVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiSlotDataStatusAsync()
|
int sceNpTusGetMultiSlotDataStatusAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiSlotDataStatusVUserAsync()
|
int sceNpTusGetMultiSlotDataStatusVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiUserDataStatus()
|
int sceNpTusGetMultiUserDataStatus()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiUserDataStatusVUser()
|
int sceNpTusGetMultiUserDataStatusVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiUserDataStatusAsync()
|
int sceNpTusGetMultiUserDataStatusAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusGetMultiUserDataStatusVUserAsync()
|
int sceNpTusGetMultiUserDataStatusVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDeleteMultiSlotData()
|
int sceNpTusDeleteMultiSlotData()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDeleteMultiSlotDataVUser()
|
int sceNpTusDeleteMultiSlotDataVUser()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDeleteMultiSlotDataAsync()
|
int sceNpTusDeleteMultiSlotDataAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sceNpTusDeleteMultiSlotDataVUserAsync()
|
int sceNpTusDeleteMultiSlotDataVUserAsync()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sceNpTus);
|
UNIMPLEMENTED_FUNC(sceNpTus);
|
||||||
|
|
||||||
|
if (!sceNpTusInstance.m_bSceNpTusInitialized)
|
||||||
|
return SCE_NP_COMMUNITY_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sceNpTus_unload()
|
void sceNpTus_unload()
|
||||||
{
|
{
|
||||||
// TODO: Unload Tus module
|
sceNpTusInstance.m_bSceNpTusInitialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sceNpTus_init(Module *pxThis)
|
void sceNpTus_init(Module *pxThis)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user