ImeDialog: change wchar_t to uint16_t#199
ImeDialog: change wchar_t to uint16_t#199sleirsgoevy wants to merge 1 commit intoOpenOrbis:masterfrom
wchar_t to uint16_t#199Conversation
musl's wchar_t is 32-bit, but the PS4 expects 16-bit strings
|
can confirm, implemented IME into my module and it shows up broken however swapping from wchat_t* to uint16_t* fixes it. |
|
as someone else pointed out, shouldn't the compiler flag of |
|
After digging way more into this, this will have to be a global change across all projects and build configurations to remain consistent. Pending talking with spec to figure out the best course, and if we should just onboard all of this to cmake while we are at it. |
|
Hi. I wanted to check to see if this is the cause of my issue in the ImeDialog. The problem is the ImeDialog only displaying the first character of the inputText and Title that I set into the param. The inputText should be the IP address. Also the "X" and "O" buttons are swapped. Btw, I'm creating an FTP client app for the PS4 and the ImeDialog is the last thing to do. Here is the code that init the dialog and the screenshot of the result. |
|
yes, this is the reason why your IME is broken, you need to use uint16_t and not wchar_t, you also need to import mbstowcs from the system as it will no longer work if you pass in uint16_t, and cast it to wchar_t. |
|
Thx very much. Any examples on how to import mbstowcs from system. Hope this can help with any others seeking this info too. Here's my shot at it. |

musl's wchar_t is 32-bit, but the PS4 expects 16-bit strings