Merge branch 'neutralino' of https://gitlab.com/KRypt0n_/an-anime-game-launcher into neutralino

This commit is contained in:
Observer KRypt0n_ 2022-01-01 23:40:29 +02:00
commit e87f3526c0
2 changed files with 8 additions and 2 deletions

View file

@ -77,7 +77,8 @@ settings:
items: items:
recommended: recommended:
title: Nur empfohlene anzeigen title: Nur empfohlene anzeigen
tooltip: This option will hide unplayable wine versions tooltip: Falls diese option eingeschaltet ist werden nur Wine versionen angezeigt
die funktioneren.
# DXVKs # DXVKs
dxvks: dxvks:
@ -85,7 +86,7 @@ settings:
items: items:
recommended: recommended:
title: Nur empfohlene anzeigen title: Nur empfohlene anzeigen
tooltip: This option will hide old DXVK versions tooltip: Falls diese option eingeschaltet ist werden alte DXVK versionen nicht angezeigt
# Shaders # Shaders
shaders: shaders:

View file

@ -171,6 +171,11 @@ export default class DXVK
const pipeline = promisify({ const pipeline = promisify({
callbacks: [ callbacks: [
/**
* Replace all wine entries and remove wineboot -u to make applying dxvk work
*/
() => Neutralino.os.execCommand(`sed -i 's/wine="wine"/wine="${runnerDir.replaceAll('/', '\\/')}\\/${runner!.files.wine.replace('64', '').replaceAll('/', '\\/')}"/g' ${dxvkDir}/setup_dxvk.sh && sed -i 's/wine64="wine64"/wine64="${runnerDir.replaceAll('/', '\\/')}\\/${runner!.files.wine.replaceAll('/', '\\/')}"/g' ${dxvkDir}/setup_dxvk.sh && sed -i 's/wineboot="wineboot"/wineboot="${runnerDir.replaceAll('/', '\\/')}\\/${runner!.files.wine.replace('64', 'boot').replaceAll('/', '\\/')}"/g' ${dxvkDir}/setup_dxvk.sh && sed -i '/$wineboot -u/d' ${dxvkDir}/setup_dxvk.sh`),
/** /**
* Make the installation script executable * Make the installation script executable
*/ */