mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-30 05:28:15 +03:00
Test SED
This commit is contained in:
parent
8a56e597dc
commit
ae085b858f
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ export default (launcher: Launcher): Promise<void> => {
|
||||||
|
|
||||||
if (shaders !== 'custom')
|
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`;
|
const userShadersFile = `${constants.paths.shadersDir}/${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