mirror of
https://github.com/HolographicHat/Yae.git
synced 2026-05-16 20:36:45 +08:00
fix bug and bump version to 1.6
This commit is contained in:
7
utils.js
7
utils.js
@@ -48,7 +48,12 @@ const initConfig = async () => {
|
||||
path: [],
|
||||
oversea_api: false
|
||||
}
|
||||
const p = path.dirname(native.selectGameExecutable())
|
||||
let p = ""
|
||||
try {
|
||||
p = path.dirname(native.selectGameExecutable())
|
||||
} catch (e) {
|
||||
process.exit(1)
|
||||
}
|
||||
await checkPath(p).catch(reason => {
|
||||
console.log(reason)
|
||||
process.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user