aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-05-28 15:49:18 +0200
committer0neGal <mail@0negal.com>2022-05-28 15:49:18 +0200
commit992f747c5cd93b4fd8c5e27c3bd24766c5875a5c (patch)
treed781083585be5e2139b9c7889185b6c008200e24 /src/utils.js
parent0f9d80cce91960350c42a50cbbee0a8d4e0c8713 (diff)
downloadViper-992f747c5cd93b4fd8c5e27c3bd24766c5875a5c.tar.gz
Viper-992f747c5cd93b4fd8c5e27c3bd24766c5875a5c.zip
fixed: Linux launch error alert not showing
This was supposed to always be there, however I somehow forgot to add the winAlert() function, and forgot about it, causing some verbose errors instead, not useful!
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.js b/src/utils.js
index e63297e..de052f5 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -380,8 +380,10 @@ function updatevp(autoinstall) {
// however it'll be added at some point.
function launch(version) {
if (process.platform == "linux") {
+ winAlert(lang("cli.launch.linuxerror"))
console.error("error:", lang("cli.launch.linuxerror"))
cli.exit(1);
+ return;
}
process.chdir(settings.gamepath);