Adjusted attributes, added better log messages and an initialization check in the sceNP module

This commit is contained in:
nmzik 2014-09-30 22:42:15 +04:00
parent 5b18e90cac
commit c0b53d6b48
2 changed files with 68 additions and 24 deletions

View File

@ -158,15 +158,17 @@ int sceNpDrmIsAvailable2(u32 k_licensee_addr, vm::ptr<const char> drm_path)
return npDrmIsAvailable(k_licensee_addr, drm_path);
}
int sceNpDrmVerifyUpgradeLicense(u32 content_id_addr)
int sceNpDrmVerifyUpgradeLicense(vm::ptr<const char> content_id)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpDrmVerifyUpgradeLicense(content_id_addr=0x%x)", content_id.addr());
return CELL_OK;
}
int sceNpDrmVerifyUpgradeLicense2()
int sceNpDrmVerifyUpgradeLicense2(vm::ptr<const char> content_id)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpDrmVerifyUpgradeLicense2(content_id_addr=0x%x)", content_id.addr());
return CELL_OK;
}
@ -339,9 +341,13 @@ int sceNpBasicAddPlayersHistoryAsync()
return CELL_OK;
}
int sceNpBasicGetPlayersHistoryEntryCount()
int sceNpBasicGetPlayersHistoryEntryCount(u32 options, vm::ptr<u32> count)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetPlayersHistoryEntryCount(options=%d, count_addr=0x%x)", options, count.addr());
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}
@ -357,9 +363,13 @@ int sceNpBasicAddBlockListEntry()
return CELL_OK;
}
int sceNpBasicGetBlockListEntryCount()
int sceNpBasicGetBlockListEntryCount(u32 count)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetBlockListEntryCount(count=%d)", count);
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}
@ -369,15 +379,23 @@ int sceNpBasicGetBlockListEntry()
return CELL_OK;
}
int sceNpBasicGetMessageAttachmentEntryCount()
int sceNpBasicGetMessageAttachmentEntryCount(vm::ptr<u32> count)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetMessageAttachmentEntryCount(count_addr=0x%x)", count.addr());
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}
int sceNpBasicGetMessageAttachmentEntry()
int sceNpBasicGetMessageAttachmentEntry(u32 index, vm::ptr<SceNpUserInfo> from)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetMessageAttachmentEntry(index=%d, from_addr=0x%x)", index, from.addr());
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}
@ -393,27 +411,43 @@ int sceNpBasicGetCustomInvitationEntry()
return CELL_OK;
}
int sceNpBasicGetMatchingInvitationEntryCount()
int sceNpBasicGetMatchingInvitationEntryCount(vm::ptr<u32> count)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetMatchingInvitationEntryCount(count_addr=0x%x)", count.addr());
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}
int sceNpBasicGetMatchingInvitationEntry()
int sceNpBasicGetMatchingInvitationEntry(u32 index, vm::ptr<SceNpUserInfo> from)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetMatchingInvitationEntry(index=%d, from_addr=0x%x)", index, from.addr());
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}
int sceNpBasicGetClanMessageEntryCount()
int sceNpBasicGetClanMessageEntryCount(vm::ptr<u32> count)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetClanMessageEntryCount(count_addr=0x%x)", count.addr());
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}
int sceNpBasicGetClanMessageEntry()
int sceNpBasicGetClanMessageEntry(u32 index, vm::ptr<SceNpUserInfo> from)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetClanMessageEntry(index=%d, from_addr=0x%x)", index, from.addr());
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}
@ -430,9 +464,13 @@ int sceNpBasicGetMessageEntryCount(u32 type, vm::ptr<u32> count)
return CELL_OK;
}
int sceNpBasicGetMessageEntry()
int sceNpBasicGetMessageEntry(u32 type, u32 index, vm::ptr<SceNpUserInfo> from)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp->Todo("sceNpBasicGetMessageEntry(type=%d, index=%d, from_addr=0x%x)", type, index, from.addr());
if (!sceNpInstance.m_bSceNpInitialized)
return SCE_NP_BASIC_ERROR_NOT_INITIALIZED;
return CELL_OK;
}

View File

@ -237,9 +237,15 @@ int sceNpTrophyDestroyContext()
return CELL_OK;
}
int sceNpTrophyAbortHandle()
int sceNpTrophyAbortHandle(u32 handle)
{
UNIMPLEMENTED_FUNC(sceNpTrophy);
sceNpTrophy->Todo("sceNpTrophyAbortHandle(handle=%d)", handle);
// TODO: ?
if (!sceNpTrophyInstance.m_bInitialized)
return SCE_NP_TROPHY_ERROR_NOT_INITIALIZED;
return CELL_OK;
}