aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-27 01:45:28 +0100
committer0neGal <mail@0negal.com>2021-12-27 01:45:28 +0100
commit763f23226d6e5bf3aa7eff0dfa4fc8f6e4118ac1 (patch)
tree0b9b99a28f7afacda2f812d7777e7a01fb21471d /src
parent9d438e3f8f543a93a916f0573c0ea24dbaf4a395 (diff)
downloadViper-763f23226d6e5bf3aa7eff0dfa4fc8f6e4118ac1.tar.gz
Viper-763f23226d6e5bf3aa7eff0dfa4fc8f6e4118ac1.zip
fixed not being in the gamepath when launching
Northstar requires you to be in the gamepath when launching, so we now change the current directory when launching.
Diffstat (limited to 'src')
-rw-r--r--src/utils.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.js b/src/utils.js
index c60eb5e..6b6fbfa 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -72,6 +72,7 @@ function launch(version) {
cli.exit(1);
}
+ process.chdir(settings.gamepath);
switch(version) {
case "vanilla":
console.log("Launching Vanilla...")