diff --git a/src/ui/components/ServerLaunchSection.tsx b/src/ui/components/ServerLaunchSection.tsx index e4953c5..cb58e15 100644 --- a/src/ui/components/ServerLaunchSection.tsx +++ b/src/ui/components/ServerLaunchSection.tsx @@ -107,7 +107,12 @@ export default class ServerLaunchSection extends React.Component } // 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() {