emscripten: Notify shell of game ID

This commit is contained in:
kichikuou
2025-01-16 10:38:09 +09:00
parent 9afb81ed7e
commit d12c1575e0
+1 -1
View File
@@ -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();