mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 08:04:52 +01:00
alert when game is not found
This commit is contained in:
@@ -107,7 +107,12 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
||||
}
|
||||
|
||||
// Launch the program
|
||||
await invoke('run_program', { path: config.game_install_path })
|
||||
const gameExists = await invoke('dir_exists', {
|
||||
path: config.game_install_path
|
||||
})
|
||||
|
||||
if (gameExists) await invoke('run_program', { path: config.game_install_path })
|
||||
else alert('Game not found!')
|
||||
}
|
||||
|
||||
async launchServer() {
|
||||
|
||||
Reference in New Issue
Block a user