mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
seperate official folder existence check
This commit is contained in:
parent
4b51777872
commit
ed8148bfac
@ -49,6 +49,11 @@ async function setBackgroundImage() {
|
||||
const bgDir = await Neutralino.filesystem.readDirectory(NL_CWD + '/resources')
|
||||
if (!bgDir.find(dir => dir.entry === 'bg')) {
|
||||
await Neutralino.filesystem.createDirectory(NL_CWD + '/resources/bg')
|
||||
}
|
||||
|
||||
// Ensure official folder exists
|
||||
const officialDir = await Neutralino.filesystem.readDirectory(NL_CWD + '/resources/bg')
|
||||
if (!officialDir.find(dir => dir.entry === 'official')) {
|
||||
await Neutralino.filesystem.createDirectory(NL_CWD + '/resources/bg/official')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user