diff --git a/resources/index.html b/resources/index.html index ca77fe1..ff2622c 100644 --- a/resources/index.html +++ b/resources/index.html @@ -130,14 +130,14 @@
- +
- +
diff --git a/resources/js/helpers.js b/resources/js/helpers.js index d4fe160..4701911 100644 --- a/resources/js/helpers.js +++ b/resources/js/helpers.js @@ -57,6 +57,20 @@ async function proxyIsInstalled() { return false } +async function openGameFolder() { + const config = await getCfg() + const folder = config.gameexe.match(/.*\\/g, '')[0] + + createCmdWindow(`explorer.exe "${folder}"`) +} + +async function openGrasscutterFolder() { + const config = await getCfg() + const folder = config.serverFolder.match(/.*\\/g, '')[0] + + createCmdWindow(`explorer.exe "${folder}"`) +} + /** * Minimize the window */ diff --git a/resources/js/index.js b/resources/js/index.js index 8f6415a..2b3d481 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -366,7 +366,7 @@ async function setGrasscutterFolder() { // Set the folder in our configuration const config = await getCfg() - config.serverFolder = folder + config.serverFolder = folder[0] Neutralino.storage.setData('config', JSON.stringify(config)) displayServerFolder()