diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/css/toasts.css | 1 | ||||
-rw-r--r-- | src/app/index.html | 1 | ||||
-rw-r--r-- | src/app/main.js | 9 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/app/css/toasts.css b/src/app/css/toasts.css index 65e325f..9b92383 100644 --- a/src/app/css/toasts.css +++ b/src/app/css/toasts.css @@ -54,4 +54,5 @@ opacity: 0.8; font-size: 0.8em; font-weight: 600; + word-break: break-word; } diff --git a/src/app/index.html b/src/app/index.html index b18db42..4bd4d92 100644 --- a/src/app/index.html +++ b/src/app/index.html @@ -162,6 +162,7 @@ <div class="actions"> <button onclick="relaunch()">%%gui.settings.miscbuttons.buttons.restart_viper%%</button> <button onclick="reset_config()">%%gui.settings.miscbuttons.buttons.reset_config%%</button> + <button onclick="open_gamepath()">%%gui.settings.miscbuttons.buttons.open_gamepath%%</button> <button onclick="kill_game()">%%gui.settings.miscbuttons.buttons.force_quit_game%%</button> <button onclick="kill_origin()">%%gui.settings.miscbuttons.buttons.force_quit_origin%%</button> <button onclick="setpath()" class="disable-when-installing">%%gui.settings.miscbuttons.buttons.change_gamepath%%</button> diff --git a/src/app/main.js b/src/app/main.js index d94d508..8ccdce3 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -130,6 +130,15 @@ function reset_config() { ipcRenderer.send("reset-config"); } +function open_gamepath() { + let open_path = require("electron").shell.openPath; + if (settings.gamepath) { + open_path(settings.gamepath); + } else { + alert(lang("gui.settings.miscbuttons.open_gamepath_alert")); + } +} + function relaunch() { ipcRenderer.send("relaunch"); } |