diff --git a/src/ts/launcher/states/Launch.ts b/src/ts/launcher/states/Launch.ts index 0b76524..80b4b39 100644 --- a/src/ts/launcher/states/Launch.ts +++ b/src/ts/launcher/states/Launch.ts @@ -121,12 +121,12 @@ 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)); + + if (shaders == 'notahuman') + await Neutralino.os.execCommand(`sed -i 's/\\/the\\/absolute\\/path\\/to\\/NFAA.fx/${constants.paths.shadersDir.replaceAll('/', '\\/')}\\/${shaders}\\/NFAA.fx/g' "${path.addSlashes(await constants.paths.launcherDir)}/vkBasalt.conf"`); } }