mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-31 14:35:19 +00:00
Implement sceImeDialogGetPanelSize
This commit is contained in:
parent
ce3aded3e5
commit
0e0b94d044
@ -83,9 +83,31 @@ int PS4_SYSV_ABI sceImeDialogGetPanelPositionAndForm() {
|
|||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceImeDialogGetPanelSize() {
|
Error PS4_SYSV_ABI sceImeDialogGetPanelSize(const OrbisImeDialogParam* param, u32* width, u32* height) {
|
||||||
LOG_ERROR(Lib_ImeDialog, "(STUBBED) called");
|
LOG_INFO(Lib_ImeDialog, "called");
|
||||||
return ORBIS_OK;
|
|
||||||
|
if (!width || !height) {
|
||||||
|
return Error::INVALID_ADDRESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (param->type) {
|
||||||
|
case OrbisImeType::Default:
|
||||||
|
case OrbisImeType::BasicLatin:
|
||||||
|
case OrbisImeType::Url:
|
||||||
|
case OrbisImeType::Mail:
|
||||||
|
// We set our custom sizes, commented sizes are the original ones
|
||||||
|
*width = 500; // 793
|
||||||
|
*height = 100; // 408
|
||||||
|
break;
|
||||||
|
case OrbisImeType::Number:
|
||||||
|
*width = 370;
|
||||||
|
*height = 402;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
LOG_ERROR(Lib_ImeDialog, "Unknown OrbisImeType: {}", (u32)param->type);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Error::OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceImeDialogGetPanelSizeExtended() {
|
int PS4_SYSV_ABI sceImeDialogGetPanelSizeExtended() {
|
||||||
|
Loading…
Reference in New Issue
Block a user