-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfix_dll.ps1
More file actions
26 lines (21 loc) · 984 Bytes
/
fix_dll.ps1
File metadata and controls
26 lines (21 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Script to replace the old DLL with the newly built one
Write-Host "Fixing DLL issue..." -ForegroundColor Cyan
$binPath = "c:\Projects\Agent Arena\bin\windows"
$oldDll = "$binPath\libagent_arena.windows.template_debug.x86_64.dll"
$newDll = "$binPath\~libagent_arena.windows.template_debug.x86_64.dll"
# Check if new DLL exists
if (Test-Path $newDll) {
Write-Host "Found newly built DLL (with ~ prefix)" -ForegroundColor Green
# Remove old DLL if it exists
if (Test-Path $oldDll) {
Write-Host "Removing old DLL..." -ForegroundColor Yellow
Remove-Item $oldDll -Force
}
# Rename new DLL to correct name
Write-Host "Renaming new DLL to correct name..." -ForegroundColor Yellow
Move-Item $newDll $oldDll -Force
Write-Host "Done! DLL has been updated." -ForegroundColor Green
Write-Host "You can now restart Godot and test." -ForegroundColor Cyan
} else {
Write-Host "Error: New DLL not found at $newDll" -ForegroundColor Red
}