diff --git a/rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp b/rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp index 5ecb783f99..5e8113bc8e 100644 --- a/rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp +++ b/rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp @@ -15,6 +15,16 @@ MsgDialogBase::~MsgDialogBase() { } +// forward declaration for open_msg_dialog +s32 cellMsgDialogOpen2(u32 type, vm::cptr msgString, vm::ptr callback, vm::ptr userData, vm::ptr extParam); + +// wrapper to call for other hle dialogs +s32 open_msg_dialog(u32 type, vm::cptr msgString, vm::ptr callback = vm::null, vm::ptr userData = vm::null, vm::ptr 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 msgString, vm::ptr callback, vm::ptr userData, vm::ptr extParam) { cellSysutil.warning("cellMsgDialogOpen2(type=0x%x, msgString=%s, callback=*0x%x, userData=*0x%x, extParam=*0x%x)", type, msgString, callback, userData, extParam); diff --git a/rpcs3/Emu/Cell/Modules/cellMsgDialog.h b/rpcs3/Emu/Cell/Modules/cellMsgDialog.h index 485eb647c9..6a428b3075 100644 --- a/rpcs3/Emu/Cell/Modules/cellMsgDialog.h +++ b/rpcs3/Emu/Cell/Modules/cellMsgDialog.h @@ -71,6 +71,8 @@ enum class MsgDialogState Close, }; +s32 open_msg_dialog(u32 type, vm::cptr msgString, vm::ptr callback, vm::ptr userData, vm::ptr extParam); + class MsgDialogBase { protected: