Merge remote-tracking branch 'origin/main'

This commit is contained in:
KingRainbow44 2022-05-29 21:54:53 -04:00
commit 1b945253b6
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -85,7 +85,7 @@ async function readConfigFile() {
if (!dirs.find((fileOrDir) => fileOrDir?.name === 'cultivation')) {
// Create dir
await fs.createDir(local + 'cultivation')
await fs.createDir(local + 'cultivation').catch(e => console.log(e))
}
const innerDirs = await fs.readDir(local + '\\cultivation')
@ -93,7 +93,7 @@ async function readConfigFile() {
// Create grasscutter dir for potential installation
if (!innerDirs.find((fileOrDir) => fileOrDir?.name === 'grasscutter')) {
// Create dir
await fs.createDir(local + 'cultivation\\grasscutter')
await fs.createDir(local + 'cultivation\\grasscutter').catch(e => console.log(e))
}
const dataFiles = await fs.readDir(local + 'cultivation')