mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
store game exe properly
This commit is contained in:
parent
dbfc52a270
commit
364b6c64f5
@ -59,7 +59,7 @@ async function proxyIsInstalled() {
|
||||
|
||||
async function openGameFolder() {
|
||||
const config = await getCfg()
|
||||
const folder = config.gameexe.match(/.*\//g, '')[0]
|
||||
const folder = config.gameexe.match(/.*\\/g, '')[0]
|
||||
|
||||
openInExplorer(folder)
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ const createCmdWindow = async (command) => {
|
||||
}
|
||||
|
||||
const openInExplorer = async (path) => {
|
||||
console.log(`explorer.exe "${path}"`)
|
||||
createCmdWindow(`explorer.exe "${path}"`)
|
||||
}
|
||||
|
||||
@ -391,7 +392,7 @@ async function setGameExe() {
|
||||
const config = await getCfg()
|
||||
|
||||
// It's an array of selections, so only get the first one
|
||||
config.gameexe = gameExe[0]
|
||||
config.gameexe = gameExe[0].replace(/\//g, '\\')
|
||||
|
||||
Neutralino.storage.setData('config', JSON.stringify(config))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user