aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-04-29 18:01:07 +0200
committer0neGal <mail@0negal.com>2024-04-29 18:01:07 +0200
commit9b31e6dfc2277dc2b904b4319b9bc06f849c38dc (patch)
tree0e0374d4078c7ee6768ebb2200d35c7f44ab5c9c /src
parent82ab89b7509f81066eea40d00dc7d7addf90be77 (diff)
downloadViper-9b31e6dfc2277dc2b904b4319b9bc06f849c38dc.tar.gz
Viper-9b31e6dfc2277dc2b904b4319b9bc06f849c38dc.zip
added launch method settings
Diffstat (limited to 'src')
-rw-r--r--src/app/icons/linux.pngbin0 -> 6465 bytes
-rw-r--r--src/app/index.html47
-rw-r--r--src/app/main.js8
-rw-r--r--src/modules/settings.js4
4 files changed, 59 insertions, 0 deletions
diff --git a/src/app/icons/linux.png b/src/app/icons/linux.png
new file mode 100644
index 0000000..29460ce
--- /dev/null
+++ b/src/app/icons/linux.png
Binary files 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 @@
</div>
</div>
</details>
+ <details open platform="linux">
+ <summary>
+ <div class="title">
+ <img src="icons/linux.png">
+ <h2>%%gui.settings.title.linux%%</h2>
+ </div>
+ </summary>
+ <div class="option" name="linux_launch_method">
+ <div class="text">
+ %%gui.settings.linux_launch_method.title%%
+ <div class="desc">
+ %%gui.settings.linux_launch_method.desc%%
+ </div>
+ </div>
+ <div class="actions">
+ <select>
+ <option value="steam_auto">%%gui.settings.linux_launch_method.methods.steam_auto%%</option>
+ <option value="steam_executable">%%gui.settings.linux_launch_method.methods.steam_executable%%</option>
+ <option value="steam_flatpak">%%gui.settings.linux_launch_method.methods.steam_flatpak%%</option>
+ <option value="steam_protocol">%%gui.settings.linux_launch_method.methods.steam_protocol%%</option>
+ <option value="custom_command">%%gui.settings.linux_launch_method.methods.command%%</option>
+ </select>
+ </div>
+ </div>
+ <div class="option" name="linux_launch_cmd_ns">
+ <div class="text">
+ %%gui.settings.linux_launch_cmd_ns.title%%
+ <div class="desc">
+ %%gui.settings.linux_launch_cmd_ns.desc%%
+ </div>
+ </div>
+ <div class="actions">
+ <input>
+ </div>
+ </div>
+ <div class="option" name="linux_launch_cmd_vanilla">
+ <div class="text">
+ %%gui.settings.linux_launch_cmd_vanilla.title%%
+ <div class="desc">
+ %%gui.settings.linux_launch_cmd_vanilla.desc%%
+ </div>
+ </div>
+ <div class="actions">
+ <input>
+ </div>
+ </div>
+ </details>
<details open>
<summary>
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: [