mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Refactor canvas ID and locale handling.
This commit is contained in:
parent
5b1cc2d1fc
commit
fd92270b0a
4 changed files with 45 additions and 56 deletions
|
|
@ -74,14 +74,6 @@ void OS_JavaScript::initialize() {
|
|||
EngineDebugger::register_uri_handler("ws://", RemoteDebuggerPeerWebSocket::create);
|
||||
EngineDebugger::register_uri_handler("wss://", RemoteDebuggerPeerWebSocket::create);
|
||||
#endif
|
||||
|
||||
char locale_ptr[16];
|
||||
/* clang-format off */
|
||||
EM_ASM({
|
||||
stringToUTF8(Module['locale'], $0, 16);
|
||||
}, locale_ptr);
|
||||
/* clang-format on */
|
||||
setenv("LANG", locale_ptr, true);
|
||||
}
|
||||
|
||||
void OS_JavaScript::resume_audio() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue