mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04: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
|
if (!config.game_path) return
|
||||||
|
|
||||||
|
// Connect to proxy
|
||||||
|
await invoke('connect', { port: 8365 })
|
||||||
|
|
||||||
// Launch the program
|
// Launch the program
|
||||||
await invoke('run_program', { path: config.game_path })
|
await invoke('run_program', { path: config.game_path })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div id="playButton">
|
<div id="playButton">
|
||||||
|
|||||||
Reference in New Issue
Block a user