This commit is contained in:
Marie 2022-02-05 21:13:01 +00:00
parent 8a56e597dc
commit ae085b858f

View file

@ -121,6 +121,9 @@ export default (launcher: Launcher): Promise<void> => {
if (shaders !== 'custom')
{
if (shaders === 'notahuman')
Neutralino.os.execCommand(`sed -i 's/\\/the\\/absolute\\/path\\/to\\/NFAA.fx/${constants.paths.shadersDir.replaceAll('/', '\\/')}/${shaders}\\/NFAA.fx/g' "${path.addSlashes(constants.paths.shadersDir)}/${shaders}/vkBasalt.conf"`);
const userShadersFile = `${constants.paths.shadersDir}/${shaders}/vkBasalt.conf`;
await Neutralino.filesystem.writeFile(launcherShadersFile, await Neutralino.filesystem.readFile(userShadersFile));