Files
dolphin/Tools/PerformanceTrace/Build-Decoder.ps1
T
Yaya48 c230971f07 IOS LLE: checkpoint NAND conformance and diagnostic tooling
Preserve formatted NAND boot and Wii Remote pairing, add DMA/SRAM conformance tests and a Wii comparison probe. Keep P1 profiling tools and native update A/B evidence; reject the unhelpful targeted SRAM shortcut.
2026-09-23 13:30:17 +02:00

14 lines
831 B
PowerShell

param([Parameter(Mandatory)][string]$OutputDirectory)
$ErrorActionPreference='Stop'
$decoderOut=[IO.Path]::GetFullPath($(if([IO.Path]::IsPathRooted($OutputDirectory)){
$OutputDirectory
}else{
Join-Path (Get-Location).ProviderPath $OutputDirectory
}))
New-Item -ItemType Directory -Force -Path $decoderOut | Out-Null
$decoderSource=Join-Path $PSScriptRoot 'DecodeP1.cpp'
$decoderSetup='call "C:\Program Files\Microsoft Visual Studio\18\Community\Common7\Tools\VsDevCmd.bat" -arch=x64 -host_arch=x64 >nul'
$decoderCommand=$decoderSetup+' && cl /nologo /EHsc /O2 /std:c++20 /DUNICODE /D_UNICODE "'+$decoderSource+'" /Fo"'+(Join-Path $decoderOut 'DecodeP1.obj')+'" /Fe"'+(Join-Path $decoderOut 'DecodeP1.exe')+'" /link tdh.lib advapi32.lib'
cmd.exe /d /s /c $decoderCommand
if($LASTEXITCODE) { throw 'Decoder compilation failed' }