Create runners directory if not exist

This commit is contained in:
Maroxy 2021-10-23 12:36:49 +02:00
parent acef1070d6
commit 7a07163b08

View file

@ -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;