mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
Connect to the proxy when starting the game
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user