Monorepo for Aesthetic.Computer
aesthetic.computer
1# Fix FMOD Callback Handler Bug
2# This fixes a UnrealHeaderTool bug that generates incorrect include statements
3
4Write-Host "Fixing UnrealHeaderTool FMOD bug..." -ForegroundColor Cyan
5
6$files = @(
7 "C:\Perforce\SpiderLily\SL_main\Plugins\FMODStudio\Intermediate\Build\Win64\UnrealGame\Inc\FMODStudio\UHT\FMODCallbackHandler.gen.cpp",
8 "C:\Perforce\SpiderLily\SL_main\Plugins\FMODStudio\Intermediate\Build\Win64\UnrealEditor\Inc\FMODStudio\UHT\FMODCallbackHandler.gen.cpp"
9)
10
11foreach ($file in $files) {
12 if (Test-Path $file) {
13 $content = Get-Content $file -Raw
14 if ($content -match '#include "allbackHandler\.h"') {
15 $content = $content -replace '#include "allbackHandler\.h"', '#include "FMODCallbackHandler.h"'
16 Set-Content -Path $file -Value $content -NoNewline
17 Write-Host " [FIXED] $file" -ForegroundColor Green
18 } else {
19 Write-Host " [OK] $file (already correct)" -ForegroundColor Gray
20 }
21 } else {
22 Write-Host " [SKIP] $file (not found)" -ForegroundColor Yellow
23 }
24}
25
26Write-Host "`nDone! You can now continue the build." -ForegroundColor Green