mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-08 19:53:15 +00:00
Message Dialog library (#767)
* system/MsgDialog: types & basic text display * system/MsgDialog: User message dialog * system/MsgDialog: RAII for MsgDialog ui * system/MsgDialog: Progress bar dialog * system/MsgDialog: System message texts * system/MsgDialog: copy all ui state to local memory handles when game release memory before close extracted all UI code to it's own file use single window instead of creating new one every single dialogOpen * system/MsgDialog: debug logging
This commit is contained in:
parent
035cb3eeaa
commit
446d8c4ff1
9 changed files with 716 additions and 153 deletions
|
@ -8,6 +8,9 @@
|
|||
|
||||
namespace Libraries::CommonDialog {
|
||||
|
||||
bool g_isInitialized = false;
|
||||
bool g_isUsed = false;
|
||||
|
||||
int PS4_SYSV_ABI _ZN3sce16CommonDialogUtil12getSelfAppIdEv() {
|
||||
LOG_ERROR(Lib_CommonDlg, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
|
@ -83,14 +86,19 @@ int PS4_SYSV_ABI _ZTVN3sce16CommonDialogUtil6ClientE() {
|
|||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceCommonDialogInitialize() {
|
||||
LOG_ERROR(Lib_CommonDlg, "(DUMMY) called");
|
||||
return ORBIS_OK;
|
||||
Error PS4_SYSV_ABI sceCommonDialogInitialize() {
|
||||
if (g_isInitialized) {
|
||||
LOG_INFO(Lib_CommonDlg, "already initialized");
|
||||
return Error::ALREADY_SYSTEM_INITIALIZED;
|
||||
}
|
||||
LOG_DEBUG(Lib_CommonDlg, "initialized");
|
||||
g_isInitialized = true;
|
||||
return Error::OK;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceCommonDialogIsUsed() {
|
||||
LOG_ERROR(Lib_CommonDlg, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
bool PS4_SYSV_ABI sceCommonDialogIsUsed() {
|
||||
LOG_TRACE(Lib_CommonDlg, "called");
|
||||
return g_isUsed;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI Func_0FF577E4E8457883() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue