1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

Add check if executable exists on Windows

This commit is contained in:
Dummerle 2022-02-05 16:45:20 +01:00
parent 67b48d0725
commit 733e784f97
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -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(