diff options
author | 0neGal <mail@0negal.com> | 2024-04-29 18:01:07 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-04-29 18:01:07 +0200 |
commit | 9b31e6dfc2277dc2b904b4319b9bc06f849c38dc (patch) | |
tree | 0e0374d4078c7ee6768ebb2200d35c7f44ab5c9c /src/app | |
parent | 82ab89b7509f81066eea40d00dc7d7addf90be77 (diff) | |
download | Viper-9b31e6dfc2277dc2b904b4319b9bc06f849c38dc.tar.gz Viper-9b31e6dfc2277dc2b904b4319b9bc06f849c38dc.zip |
added launch method settings
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/icons/linux.png | bin | 0 -> 6465 bytes | |||
-rw-r--r-- | src/app/index.html | 47 | ||||
-rw-r--r-- | src/app/main.js | 8 |
3 files changed, 55 insertions, 0 deletions
diff --git a/src/app/icons/linux.png b/src/app/icons/linux.png Binary files differnew file mode 100644 index 0000000..29460ce --- /dev/null +++ b/src/app/icons/linux.png 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" |