From 535af3d32a07885680fa3fb361861fc91d50088d Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Sat, 6 Apr 2024 15:31:54 +0200 Subject: [PATCH] Fix new keybinds not being changeable in settings --- assets/electron/controllerActions.yaml | 10 ++++++++-- assets/electron/keyboardActions.yaml | 10 ++++++++-- electron/src/lib/LauncherService.js | 4 ++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/assets/electron/controllerActions.yaml b/assets/electron/controllerActions.yaml index 21bf88e0..26e9ccaf 100644 --- a/assets/electron/controllerActions.yaml +++ b/assets/electron/controllerActions.yaml @@ -143,8 +143,14 @@ Binding4: Binding5: displayName: Binding5 composable: true -Reload: - displayName: Reload +ServerReconnect: + displayName: ServerReconnect + composable: true +ReloadSeed: + displayName: ReloadSeed + composable: true +ShowFlags: + displayName: ShowFlags composable: true ShowLastPickup: displayName: ShowLastPickup diff --git a/assets/electron/keyboardActions.yaml b/assets/electron/keyboardActions.yaml index 007906e9..4520ea7e 100644 --- a/assets/electron/keyboardActions.yaml +++ b/assets/electron/keyboardActions.yaml @@ -16,8 +16,14 @@ Binding4: Binding5: displayName: Binding5 composable: true -Reload: - displayName: Reload +ServerReconnect: + displayName: ServerReconnect + composable: true +ReloadSeed: + displayName: ReloadSeed + composable: true +ShowFlags: + displayName: ShowFlags composable: true ShowLastPickup: displayName: ShowLastPickup diff --git a/electron/src/lib/LauncherService.js b/electron/src/lib/LauncherService.js index df7673de..4ce3d621 100644 --- a/electron/src/lib/LauncherService.js +++ b/electron/src/lib/LauncherService.js @@ -117,7 +117,7 @@ export class LauncherService { if (await this.isRandomizerRunning()) { try { - await RandoIPCService.emit('reload') + await RandoIPCService.emit('reread_seed_source') await focusGameWindow() } catch (e) { console.error(e) @@ -166,7 +166,7 @@ export class LauncherService { if (await this.isRandomizerRunning()) { try { - await RandoIPCService.emit('reload') + await RandoIPCService.emit('reread_seed_source') } catch (e) { console.error(e) throw new Error('Could not load the seed in running game.\nPlease wait a few seconds if you closed the game just now.')