mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
Connect to the proxy when starting the game
This commit is contained in:
@@ -45,11 +45,13 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
||||
|
||||
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 (
|
||||
<div id="playButton">
|
||||
|
||||
Reference in New Issue
Block a user