-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImeDialog: change wchar_t
to uint16_t
#199
base: master
Are you sure you want to change the base?
Conversation
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