mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-24 09:39:55 +00:00
cellMsgDialog: introduce open_msg_dialog
This commit is contained in:
parent
d4285fb196
commit
7208aa37cc
@ -15,6 +15,16 @@ MsgDialogBase::~MsgDialogBase()
|
||||
{
|
||||
}
|
||||
|
||||
// forward declaration for open_msg_dialog
|
||||
s32 cellMsgDialogOpen2(u32 type, vm::cptr<char> msgString, vm::ptr<CellMsgDialogCallback> callback, vm::ptr<void> userData, vm::ptr<void> extParam);
|
||||
|
||||
// wrapper to call for other hle dialogs
|
||||
s32 open_msg_dialog(u32 type, vm::cptr<char> msgString, vm::ptr<CellMsgDialogCallback> callback = vm::null, vm::ptr<void> userData = vm::null, vm::ptr<void> extParam = vm::null)
|
||||
{
|
||||
cellSysutil.warning("open_msg_dialog called. This will call cellMsgDialogOpen2");
|
||||
return cellMsgDialogOpen2(type, msgString, callback, userData, extParam);
|
||||
}
|
||||
|
||||
s32 cellMsgDialogOpen2(u32 type, vm::cptr<char> msgString, vm::ptr<CellMsgDialogCallback> callback, vm::ptr<void> userData, vm::ptr<void> extParam)
|
||||
{
|
||||
cellSysutil.warning("cellMsgDialogOpen2(type=0x%x, msgString=%s, callback=*0x%x, userData=*0x%x, extParam=*0x%x)", type, msgString, callback, userData, extParam);
|
||||
|
@ -71,6 +71,8 @@ enum class MsgDialogState
|
||||
Close,
|
||||
};
|
||||
|
||||
s32 open_msg_dialog(u32 type, vm::cptr<char> msgString, vm::ptr<CellMsgDialogCallback> callback, vm::ptr<void> userData, vm::ptr<void> extParam);
|
||||
|
||||
class MsgDialogBase
|
||||
{
|
||||
protected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user