Post: Use Any Title For Keyboard Input Dialog
12-29-2016, 12:37 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This would be the replacement in 2much4u's base. It patches the part that turns the label text into title text. This will only work on cfw with the memory restrictions taken off (Rebug dex and cex will work, ita won't work but you can change to write_process to fix this, some other cex work but not all)
    void startKeyboard(int action, char *defaultText, int maxLength, char *title = "Enter Text")
{
//fix keyboard title thingy
int stub1 = *(int*)(0x003D958C+0x0);
int stub2 = *(int*)(0x003D958C+0x4);
*(int*)(0x003D958C+0x0) = 0x60000000;
*(int*)(0x003D958C+0x4) = 0x60000000;
GAMEPLAY:HappyISPLAY_ONSCREEN_KEYBOARD(0, title, "", defaultText, "", "", "", maxLength);
//reset keyboard title thingy
*(int*)(0x003D958C+0x0) = stub1;
*(int*)(0x003D958C+0x4) = stub2;
keyboardAction = action;
keyboardActive = true;
}

Have fun.
Please move this to the code section. I don't have enough rep to post there.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo