mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 08:34:43 +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()
|
const config = await getConfig()
|
||||||
|
|
||||||
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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user