diff --git a/lang/en-GB.json b/lang/en-GB.json index f9ffd9c6..5a77462d 100644 --- a/lang/en-GB.json +++ b/lang/en-GB.json @@ -234,6 +234,7 @@ "running_cover": { "title_running": "DDLC is running", "title_crashed": "Something went wrong", + "button_browse": "Open Game Folder", "button_close": "OK", "description_running": "Close the game to make changes to your mods.", "install_missing": "The install could not be found.", diff --git a/src/main/index.ts b/src/main/index.ts index e3b9b791..ba5ea71d 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -100,7 +100,8 @@ function launchInstall(folderName): void { display: true, dismissable: false, title: lang.translate("main.running_cover.title_running"), - description: lang.translate("main.running_cover.description_running") + description: lang.translate("main.running_cover.description_running"), + folder_path: joinPath(Config.readConfigValue("installFolder"), "installs", folderName) }); InstallLauncher.launchInstall(folderName, richPresence).then(() => { appWindow.restore(); // show DDMM again @@ -114,7 +115,8 @@ function launchInstall(folderName): void { display: true, dismissable: true, title: lang.translate("main.running_cover.title_crashed"), - description: err + description: err, + folder_path: joinPath(Config.readConfigValue("installFolder"), "installs", folderName) }); }); } diff --git a/src/renderer/html/index.html b/src/renderer/html/index.html index ba65dc5b..81262ed1 100644 --- a/src/renderer/html/index.html +++ b/src/renderer/html/index.html @@ -15,6 +15,10 @@

{{running_cover.title}}

{{running_cover.description}}

+

diff --git a/src/renderer/js/app.js b/src/renderer/js/app.js index a4955616..03e59a2e 100644 --- a/src/renderer/js/app.js +++ b/src/renderer/js/app.js @@ -88,6 +88,7 @@ const app = new Vue({ "windowMinimise": ddmm.window.minimise, "openURL": ddmm.app.openURL, "downloadUpdate": ddmm.app.downloadUpdate, + "showFile": ddmm.app.showFile, "setBackground": function (image) { this.background_image = image; }, @@ -154,6 +155,7 @@ ddmm.on("running cover", cover => { app.running_cover.title = cover.title; app.running_cover.description = cover.description; app.running_cover.dismissable = cover.dismissable; + app.running_cover.folder_path = cover.folder_path; }); ddmm.on("error", error => {