diff options
-rw-r--r-- | src/main/manaplus/manaplus.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/manaplus/manaplus.ts b/src/main/manaplus/manaplus.ts index 590b9f4..190febe 100644 --- a/src/main/manaplus/manaplus.ts +++ b/src/main/manaplus/manaplus.ts @@ -87,6 +87,7 @@ export namespace ManaPlus{ ipcMain.on('getScreenshots', (event:any, arg:string)=> { const screenshotsDir = path.normalize(app.getPath('userData')+`/screenshots/${arg}/`); + fs.existsSync(screenshotsDir) || fs.mkdirSync(screenshotsDir); fs.readdir(screenshotsDir, (err, dir) => { let screenshots:string[]=[]; for (var i = 0, path; path = dir[i]; i++) { |