From d12c1575e04847dad77cae5c48895035fc684111 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Thu, 16 Jan 2025 10:38:09 +0900 Subject: [PATCH] emscripten: Notify shell of game ID --- src/sdlmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdlmain.cpp b/src/sdlmain.cpp index e57813d..9dca131 100644 --- a/src/sdlmain.cpp +++ b/src/sdlmain.cpp @@ -51,7 +51,7 @@ SDL_Window* create_window(const GameId& game_id) #endif #ifdef __EMSCRIPTEN__ - EM_ASM_ARGS({ xsystem35.shell.setWindowTitle(UTF8ToString($0)); }, title.c_str()); + EM_ASM_ARGS({ xsystem35.shell.setWindowTitle(UTF8ToString($0), UTF8ToString($1)); }, title.c_str(), game_id.name); const char *window_title = NULL; // Don't let SDL change document.title #else const char *window_title = title.c_str();