From 7a07163b08878ce22dd1e0cfa21d7c3827805574 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Sat, 23 Oct 2021 12:36:49 +0200 Subject: [PATCH] Create runners directory if not exist --- src/ts/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ts/index.ts b/src/ts/index.ts index 5f84c90..5cf1c60 100644 --- a/src/ts/index.ts +++ b/src/ts/index.ts @@ -12,6 +12,9 @@ import { LauncherUI } from './LauncherUI'; if (!fs.existsSync(Genshinlib.prefixDir)) fs.mkdirSync(Genshinlib.prefixDir, { recursive: true }); +if (!fs.existsSync(Genshinlib.runnersDir)) + fs.mkdirSync(Genshinlib.runnersDir, { recursive: true }); + $(() => { if (Genshinlib.version !== null) document.title = 'Genshin Impact Linux Launcher - ' + Genshinlib.version;