diff --git a/src/ts/launcher/states/Launch.ts b/src/ts/launcher/states/Launch.ts index 740ccd0..0b76524 100644 --- a/src/ts/launcher/states/Launch.ts +++ b/src/ts/launcher/states/Launch.ts @@ -121,6 +121,9 @@ export default (launcher: Launcher): Promise => { 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));