From 9b31e6dfc2277dc2b904b4319b9bc06f849c38dc Mon Sep 17 00:00:00 2001 From: 0neGal Date: Mon, 29 Apr 2024 18:01:07 +0200 Subject: added launch method settings --- src/app/icons/linux.png | Bin 0 -> 6465 bytes src/app/index.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++ src/app/main.js | 8 ++++++++ src/modules/settings.js | 4 ++++ 4 files changed, 59 insertions(+) create mode 100644 src/app/icons/linux.png diff --git a/src/app/icons/linux.png b/src/app/icons/linux.png new file mode 100644 index 0000000..29460ce Binary files /dev/null and b/src/app/icons/linux.png differ diff --git a/src/app/index.html b/src/app/index.html index 016b708..c6001f4 100644 --- a/src/app/index.html +++ b/src/app/index.html @@ -63,6 +63,53 @@ +
+ +
+ +

%%gui.settings.title.linux%%

+
+
+
+
+ %%gui.settings.linux_launch_method.title%% +
+ %%gui.settings.linux_launch_method.desc%% +
+
+
+ +
+
+
+
+ %%gui.settings.linux_launch_cmd_ns.title%% +
+ %%gui.settings.linux_launch_cmd_ns.desc%% +
+
+
+ +
+
+
+
+ %%gui.settings.linux_launch_cmd_vanilla.title%% +
+ %%gui.settings.linux_launch_cmd_vanilla.desc%% +
+
+
+ +
+
+
diff --git a/src/app/main.js b/src/app/main.js index c3f89d2..f4c1624 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -15,6 +15,9 @@ var modsobj = { let shouldInstallNorthstar = false; // Base settings +// +// TODO: dont duplicate this, instead just use the one in +// `src/modules/settings.js` automatically var settings = { nsargs: "", gamepath: "", @@ -25,6 +28,11 @@ var settings = { originkill: false, zip: "/northstar.zip", lang: navigator.language, + + linux_launch_cmd_ns: "", + linux_launch_cmd_vanilla: "", + linux_launch_method: "steam_auto", + excludes: [ "ns_startup_args.txt", "ns_startup_args_dedi.txt" diff --git a/src/modules/settings.js b/src/modules/settings.js index d513ec9..60d6be0 100644 --- a/src/modules/settings.js +++ b/src/modules/settings.js @@ -47,6 +47,10 @@ var settings = { nsargs: "-multiple", zip: "/northstar.zip", + linux_launch_cmd_ns: "", + linux_launch_cmd_vanilla: "", + linux_launch_method: "steam_auto", + // these files won't be overwritten when installing/updating // Northstar, useful for config files excludes: [ -- cgit v1.2.3