From 00fe9ccddbd55ad84c8b162d3c75bf5e3695e214 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 23 Jul 2026 16:48:21 -0400 Subject: [PATCH] Default EmulatorJS netplay username to the RomM account EmulatorJS keeps the netplay player name in memory only and shows its name popup whenever netplay.name is unset, forcing users to retype a name every session. Preset it from the logged-in RomM username in the existing netplay override block, so the popup is skipped and the account name is used automatically. Co-Authored-By: Claude Fable 5 --- frontend/src/views/Player/EmulatorJS/Player.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/views/Player/EmulatorJS/Player.vue b/frontend/src/views/Player/EmulatorJS/Player.vue index 71ba448f4..0d046ca17 100644 --- a/frontend/src/views/Player/EmulatorJS/Player.vue +++ b/frontend/src/views/Player/EmulatorJS/Player.vue @@ -393,6 +393,11 @@ window.EJS_onGameStart = async () => { // are in place before room polling or a Create/Join action can start. const netplay = window.EJS_emulator?.netplay; if (netplay) { + // EmulatorJS only prompts for a player name when netplay.name is unset, + // so presetting it adopts the RomM account username automatically. + if (!netplay.name && authStore.user?.username) { + netplay.name = authStore.user.username; + } netplay.getOpenRooms = async () => { try { const response = await fetch(