added ability to use dgvoodoo ddraw for VM resource builds.

This commit is contained in:
2026-07-16 15:47:32 -05:00
parent 92a94d0ad6
commit 5b7cd34058
+3 -1
View File
@@ -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"