MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / sceNpBasicSendMessageAttachment

Function sceNpBasicSendMessageAttachment

ps3fw/sceNp.cpp:1505–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1503}
1504
1505error_code sceNpBasicSendMessageAttachment(ppu_thread& ppu,
1506 vm::cptr<SceNpId> to,
1507 vm::cptr<char> subject,
1508 vm::cptr<char> body,
1509 vm::cptr<void> data, u32 size,
1510 sys_memory_container_t containerId)
1511{
1512 sceNp.warning("sceNpBasicSendMessageAttachment(to=*0x%x, subject=%s, "
1513 "body=%s, data=%s, size=%d, containerId=%d)",
1514 to, subject, body, data, size, containerId);
1515
1516 vm::var<SceNpBasicMessageDetails> msg;
1517 msg->msgId = 0;
1518 msg->mainType = SCE_NP_BASIC_MESSAGE_MAIN_TYPE_DATA_ATTACHMENT;
1519 msg->subType = SCE_NP_BASIC_MESSAGE_DATA_ATTACHMENT_SUBTYPE_ACTION_USE;
1520 msg->msgFeatures = 0;
1521 msg->npids = vm::const_ptr_cast<SceNpId>(to);
1522 msg->count = 1;
1523 msg->subject = vm::const_ptr_cast<char>(subject);
1524 msg->body = vm::const_ptr_cast<char>(body);
1525 msg->data = vm::static_ptr_cast<u8>(vm::const_ptr_cast<void>(data));
1526 msg->size = size;
1527
1528 return sceNpBasicSendMessageGui(ppu, msg, containerId);
1529}
1530
1531error_code recv_message_gui(ppu_thread& ppu, u16 mainType, u32 recvOptions);
1532

Callers

nothing calls this directly

Calls 1

sceNpBasicSendMessageGuiFunction · 0.85

Tested by

no test coverage detected