(probably) fixed shaders work

This commit is contained in:
Observer KRypt0n_ 2022-01-06 19:45:37 +02:00
parent d03db083e9
commit 9118c433be
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -88,7 +88,7 @@ export default (launcher: Launcher): Promise<void> => {
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));
}