Skip to content

Commit a463d12

Browse files
Add d3d9 Vulkan wrapper DLL
1 parent e611589 commit a463d12

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/rust.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
- name: Download webplayer DLLs
2525
run: wget -r -l 7 -np -R "index.html*" -nH --cut-dirs=2 https://cdn.dexlabs.systems/webplayer/patched-latest/ -P resources/ffrunner/
2626

27+
- name: Download & extract Vulkan wrapper DLL
28+
run: |
29+
wget https://github.com/doitsujin/dxvk/releases/download/v1.10.3/dxvk-1.10.3.tar.gz
30+
tar -xvf dxvk-1.10.3.tar.gz
31+
mv dxvk-1.10.3/x32/d3d9.dll resources/ffrunner/d3d9_vulkan.dll
32+
2733
- name: Upload ffrunner
2834
uses: actions/[email protected]
2935
with:
@@ -90,7 +96,7 @@ jobs:
9096
run: |
9197
cd src-tauri/target/release
9298
mkdir linux-standalone
93-
mv -t linux-standalone openfusionlauncher ffrunner.exe assets defaults loader player mono
99+
mv -t linux-standalone openfusionlauncher ffrunner.exe d3d9_vulkan.dll assets defaults loader player mono
94100
95101
- uses: actions/[email protected]
96102
with:
@@ -144,7 +150,7 @@ jobs:
144150
run: |
145151
cd src-tauri/target/release
146152
mkdir windows-standalone
147-
Move-Item -Destination windows-standalone -Path openfusionlauncher.exe,ffrunner.exe,assets,defaults,loader,player,mono
153+
Move-Item -Destination windows-standalone -Path openfusionlauncher.exe,ffrunner.exe,d3d9_vulkan.dll,assets,defaults,loader,player,mono
148154
149155
- uses: actions/[email protected]
150156
with:

src-tauri/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,8 @@ async fn prep_launch(
542542
}
543543
config::GraphicsApi::Vulkan => {
544544
cmd.arg("--force-vulkan");
545+
#[cfg(debug_assertions)]
546+
cmd.env("DXVK_HUD", "1");
545547
}
546548
}
547549

src-tauri/tauri.conf.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"../resources/defaults/versions/*": "defaults/versions/",
4242
"../resources/assets/img/*": "assets/img/",
4343
"../resources/ffrunner/ffrunner.exe": "ffrunner.exe",
44+
"../resources/ffrunner/d3d9_vulkan.dll": "d3d9_vulkan.dll",
4445
"../resources/ffrunner/loader/*": "loader/",
4546
"../resources/ffrunner/player/fusion-2.x.x/*": "player/fusion-2.x.x/",
4647
"../resources/ffrunner/player/fusion-2.x.x/Data/*": "player/fusion-2.x.x/Data/",

0 commit comments

Comments
 (0)