From 5b7cd34058808d725fbe8778fce1081c60782600 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 16 Jul 2026 15:47:32 -0500 Subject: [PATCH] added ability to use dgvoodoo ddraw for VM resource builds. --- build-env/build-resources.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-env/build-resources.ps1 b/build-env/build-resources.ps1 index 263751e5..ceb04e36 100644 --- a/build-env/build-resources.ps1 +++ b/build-env/build-resources.ps1 @@ -78,7 +78,9 @@ Write-Host "[pack 2/3] running resource compiler fullscreen (this can take a whi # Error -> the builder hangs on a modal dialog). Move it aside so the builder uses native DirectDraw; # the finally restores it for the editor regardless of how the build ends. $ddraw = Join-Path $Runtime "ddraw.dll"; $ddrawBak = "$ddraw.buildaside"; $ddrawMoved = $false -if (Test-Path $ddraw) { Move-Item $ddraw $ddrawBak -Force; $ddrawMoved = $true; Write-Host " (moved DDrawCompat ddraw.dll aside for the build)" } +$isDDrawCompat = (Test-Path $ddraw) -and -not (Test-Path (Join-Path $Runtime "dgVoodoo.conf")) +if ($isDDrawCompat) { Move-Item $ddraw $ddrawBak -Force; $ddrawMoved = $true; Write-Host " (moved DDrawCompat ddraw.dll aside for the build)" } +elseif (Test-Path $ddraw) { Write-Host " (dgVoodoo2 ddraw.dll detected - keeping in place for build)" } $code = $null try { $argList = "/gosnodialogs -armorlevel 3 -build -norun -nosound -nocd -noeula"