Connect to the proxy when starting the game

This commit is contained in:
KingRainbow44
2022-05-10 19:05:52 -04:00
parent 12928ca0e1
commit de9f9e1404

View File

@@ -44,11 +44,13 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
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 (