mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
fix opening folders again
This commit is contained in:
parent
e8fe7e316f
commit
351d6daa34
@ -10,7 +10,7 @@
|
||||
"grasscutterFileSet": "Set \"Grasscutter\" .jar file",
|
||||
"folderNotSet": "Not set",
|
||||
|
||||
"ipPlaceholder": "IP Address",
|
||||
"ipPlaceholder": "Server Address...",
|
||||
"portPlaceholder": "Port",
|
||||
"noFavorites": "No favorites set",
|
||||
|
||||
|
@ -93,14 +93,14 @@ async function openGameFolder() {
|
||||
const config = await getCfg()
|
||||
const folder = config.gameexe.match(/.*\\|.*\//g, '')
|
||||
|
||||
if (folder.length > 0) openInExplorer(folder[0])
|
||||
if (folder.length > 0) openInExplorer(folder[0].replace(/\//g, '\\'))
|
||||
}
|
||||
|
||||
async function openGrasscutterFolder() {
|
||||
const config = await getCfg()
|
||||
const folder = config.serverFolder.match(/.*\\|.*\//g, '')
|
||||
|
||||
if (folder.length > 0) openInExplorer(folder[0])
|
||||
if (folder.length > 0) openInExplorer(folder[0].replace(/\//g, '\\'))
|
||||
}
|
||||
|
||||
// https://www.jimzhao.us/2015/09/javascript-detect-chinese-character.html
|
||||
|
Loading…
Reference in New Issue
Block a user