Add check if executable exists on Windows
This commit is contained in:
parent
67b48d0725
commit
733e784f97
1 changed files with 4 additions and 0 deletions
|
@ -236,6 +236,10 @@ class GameUtils(QObject):
|
|||
process.deleteLater()
|
||||
return
|
||||
|
||||
if shutil.which(full_params[0]) is None:
|
||||
QMessageBox.warning(None, "Warning", self.tr("'{}' does not exist").format(full_params[0]))
|
||||
return
|
||||
|
||||
process.setProcessEnvironment(environment)
|
||||
process.game_finished.connect(self.game_finished)
|
||||
running_game = RunningGameModel(
|
||||
|
|
Loading…
Reference in a new issue