diff --git a/scripts/Invoke-HyperTwistClassicCubePackage.ps1 b/scripts/Invoke-HyperTwistClassicCubePackage.ps1 index 628cb4b..80d00a7 100644 --- a/scripts/Invoke-HyperTwistClassicCubePackage.ps1 +++ b/scripts/Invoke-HyperTwistClassicCubePackage.ps1 @@ -10,6 +10,7 @@ param( '-DisablePlugins=MovieRenderPipeline', '-SkipCookingEditorContent' ), + [bool]$HeadlessSmoke = $true, [string]$ValidationReportPath = '', [switch]$CleanArchive, [switch]$SkipBuild, @@ -318,6 +319,7 @@ $ValidationReport = [ordered]@{ cookMaps = @($CookMaps) smokeMaps = @($ResolvedSmokeMaps) additionalCookerOptions = @($ResolvedAdditionalCookerOptions) + headlessSmoke = $HeadlessSmoke cleanArchive = [bool]$CleanArchive skipBuild = [bool]$SkipBuild skipLaunch = [bool]$SkipLaunch @@ -358,7 +360,12 @@ try '{0}.json' -f (Convert-PathToken -Value $SmokeMap) ) Write-Host "Smoke validating packaged classic-cube map '$SmokeMap'..." - & $LaunchScriptPath -PackageRoot $ArchiveDirectory -MapUrl $SmokeMap -ReportPath $SmokeReportPath + & $LaunchScriptPath ` + -PackageRoot $ArchiveDirectory ` + -MapUrl $SmokeMap ` + -ReportPath $SmokeReportPath ` + -UseNullRHI:$HeadlessSmoke ` + -NoSound:$HeadlessSmoke if ($LASTEXITCODE -ne 0) { throw "Packaged classic-cube smoke launch failed for '$SmokeMap' with exit code $LASTEXITCODE."