mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-30 05:28:15 +03:00
(probably) fixed shaders work
This commit is contained in:
parent
d03db083e9
commit
9118c433be
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ export default class Launcher
|
||||||
|
|
||||||
time: {
|
time: {
|
||||||
// @ts-expect-error
|
// @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)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ export default (launcher: Launcher): Promise<void> => {
|
||||||
|
|
||||||
if (shaders !== 'custom')
|
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));
|
await Neutralino.filesystem.writeFile(launcherShadersFile, await Neutralino.filesystem.readFile(userShadersFile));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue