From de9f9e14043a39e70ab5110af8d15d30e0453bda Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Tue, 10 May 2022 19:05:52 -0400 Subject: [PATCH] Connect to the proxy when starting the game --- src/ui/components/ServerLaunchSection.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/components/ServerLaunchSection.tsx b/src/ui/components/ServerLaunchSection.tsx index 02cadf7..b5052c9 100644 --- a/src/ui/components/ServerLaunchSection.tsx +++ b/src/ui/components/ServerLaunchSection.tsx @@ -44,11 +44,13 @@ export default class ServerLaunchSection extends React.Component const config = await getConfig() if (!config.game_path) return + + // Connect to proxy + await invoke('connect', { port: 8365 }) // Launch the program await invoke('run_program', { path: config.game_path }) } - render() { return (