devkitPro / wut

Let's try to make a Wii U Toolchain / SDK for creating rpx/rpl.
zlib License
236 stars 52 forks source link

[Question] Is there any API to get system language? #334

Closed Wohlstand closed 10 months ago

Wohlstand commented 10 months ago

Is there any API or method to detect a system language on WiiU? I trying to find some, but I find nothing among WUT's headers...

GaryOderNichts commented 10 months ago

Most titles use a statically linked SCI library for reading the language from the system configuration, there's currently no implementation for it in wut though.

You can manually read this value from cafe.language as a UC_DATATYPE_UNSIGNED_INT using the functions in the coreinit/userconfig.h header. This value represents one of the language codes found in the 0005001b-1005c000 title.

Wohlstand commented 10 months ago

I see, thanks!