From 11f2bc2de10e5ec7bb8a8b102855e9b7f0122c02 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 22 Jul 2023 16:09:41 +0200 Subject: colored console logging Far prettier, and far more useful at a glance. --- src/modules/launch.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/launch.js') 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; } -- cgit v1.2.3