Added DXVK 1.9.3

- now it's default dxvk to install
- also fixed dxvk applying progress bar title
This commit is contained in:
Observer KRypt0n_ 2022-01-11 15:25:31 +02:00
parent 8f9d770bc3
commit fcd90315e6
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
3 changed files with 12 additions and 7 deletions

View file

@ -21,7 +21,7 @@
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.34",
"@tsconfig/svelte": "^3.0.0",
"@types/js-md5": "^0.4.3",
"neutralino-appimage-bundler": "^1.3.1",
"neutralino-appimage-bundler": "^1.3.2",
"sass": "^1.47.0",
"svelte": "^3.45.0",
"svelte-check": "^2.2.12",

View file

@ -1,4 +1,9 @@
[
{
"version": "1.9.3",
"uri": "https://github.com/doitsujin/dxvk/releases/download/v1.9.3/dxvk-1.9.3.tar.gz",
"recommended": true
},
{
"version": "1.9.2",
"uri": "https://github.com/doitsujin/dxvk/releases/download/v1.9.2/dxvk-1.9.2.tar.gz",

View file

@ -9,9 +9,9 @@ export default (launcher: Launcher): Promise<void> => {
import('./CreatePrefix').then((module) => {
module.default(launcher).then(() => {
// And then download the DXVK
DXVK.download('1.9.2').then((stream) => {
DXVK.download('1.9.3').then((stream) => {
launcher.progressBar?.init({
label: 'Downloading DXVK 1.9.2...',
label: 'Downloading DXVK 1.9.3...',
showSpeed: true,
showEta: true,
showPercents: true,
@ -28,7 +28,7 @@ export default (launcher: Launcher): Promise<void> => {
stream?.unpackStart(() => {
launcher.progressBar?.init({
label: () => unpacking ? 'Unpacking DXVK 1.9.2...' : 'Applying DXVK 1.9.2...',
label: () => unpacking ? 'Unpacking DXVK 1.9.3...' : 'Applying DXVK 1.9.3...',
showSpeed: true,
showEta: true,
showPercents: true,
@ -41,13 +41,13 @@ export default (launcher: Launcher): Promise<void> => {
});
stream?.unpackFinish(async () => {
unpacking = true;
unpacking = false;
// Select this DXVK
await DXVK.current('1.9.2');
await DXVK.current('1.9.3');
// And apply it
DXVK.apply(await constants.paths.prefix.current, '1.9.2').then(() => {
DXVK.apply(await constants.paths.prefix.current, '1.9.3').then(() => {
launcher.progressBar?.hide();
resolve();