aboutsummaryrefslogtreecommitdiff
path: root/src/modules/launch.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-07-22 16:09:41 +0200
committer0neGal <mail@0negal.com>2023-07-22 16:09:41 +0200
commit11f2bc2de10e5ec7bb8a8b102855e9b7f0122c02 (patch)
tree29fbc46781019ccc19c53664a27042acd4112f25 /src/modules/launch.js
parente984cf81b7fd84c44fb39206c639c35a44c6054c (diff)
downloadViper-11f2bc2de10e5ec7bb8a8b102855e9b7f0122c02.tar.gz
Viper-11f2bc2de10e5ec7bb8a8b102855e9b7f0122c02.zip
colored console logging
Far prettier, and far more useful at a glance.
Diffstat (limited to 'src/modules/launch.js')
-rw-r--r--src/modules/launch.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/launch.js b/src/modules/launch.js
index 82de109..af9939b 100644
--- a/src/modules/launch.js
+++ b/src/modules/launch.js
@@ -6,6 +6,8 @@ const lang = require("../lang");
const win = require("./window");
const settings = require("./settings");
+console = require("./console");
+
// launches the game
//
// either Northstar or Vanilla. Linux support is not currently a thing,
@@ -25,11 +27,11 @@ function launch(game_version) {
// launch the requested game version
switch(game_version) {
case "vanilla":
- console.log(lang("general.launching"), "Vanilla...");
+ console.info(lang("general.launching"), "Vanilla...");
exec("Titanfall2.exe", {cwd: settings.gamepath});
break;
default:
- console.log(lang("general.launching"), "Northstar...");
+ console.info(lang("general.launching"), "Northstar...");
exec("NorthstarLauncher.exe", {cwd: settings.gamepath});
break;
}