Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
123456789101112131415161718192021222324252627# Fix FMOD Callback Handler Bug# This fixes a UnrealHeaderTool bug that generates incorrect include statements
Write-Host "Fixing UnrealHeaderTool FMOD bug..." -ForegroundColor Cyan
$files = @( "C:\Perforce\SpiderLily\SL_main\Plugins\FMODStudio\Intermediate\Build\Win64\UnrealGame\Inc\FMODStudio\UHT\FMODCallbackHandler.gen.cpp", "C:\Perforce\SpiderLily\SL_main\Plugins\FMODStudio\Intermediate\Build\Win64\UnrealEditor\Inc\FMODStudio\UHT\FMODCallbackHandler.gen.cpp")
foreach ($file in $files) { if (Test-Path $file) { $content = Get-Content $file -Raw if ($content -match '#include "allbackHandler\.h"') { $content = $content -replace '#include "allbackHandler\.h"', '#include "FMODCallbackHandler.h"' Set-Content -Path $file -Value $content -NoNewline Write-Host " [FIXED] $file" -ForegroundColor Green } else { Write-Host " [OK] $file (already correct)" -ForegroundColor Gray } } else { Write-Host " [SKIP] $file (not found)" -ForegroundColor Yellow }}
Write-Host "`nDone! You can now continue the build." -ForegroundColor Green