diff --git a/src/ts/Launcher.ts b/src/ts/Launcher.ts index 2eb9ecb..d6bbb65 100644 --- a/src/ts/Launcher.ts +++ b/src/ts/Launcher.ts @@ -123,7 +123,7 @@ export default class Launcher time: { // @ts-expect-error - start: state === 'in-launcher' ? 0 : discord.timer ? Math.round(Date.now() / 1000) : 0 + start: state === 'in-launcher' ? 0 : (discord.timer ? Math.round(Date.now() / 1000) : 0) } }); diff --git a/src/ts/launcher/states/Launch.ts b/src/ts/launcher/states/Launch.ts index 9f62a63..51cb278 100644 --- a/src/ts/launcher/states/Launch.ts +++ b/src/ts/launcher/states/Launch.ts @@ -88,7 +88,7 @@ export default (launcher: Launcher): Promise => { if (shaders !== 'custom') { - const userShadersFile = `${constants.paths.shadersDir}/public/${shaders}/vkBasalt.conf`; + const userShadersFile = `${constants.paths.shadersDir}/public/shaders/${shaders}/vkBasalt.conf`; await Neutralino.filesystem.writeFile(launcherShadersFile, await Neutralino.filesystem.readFile(userShadersFile)); }