mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-25 02:58:14 +03:00
Add sed Command for NFAA file
This commit is contained in:
parent
ae085b858f
commit
5be0d2c212
1 changed files with 3 additions and 3 deletions
|
@ -121,12 +121,12 @@ 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));
|
||||
|
||||
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"`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue