Add error checking

This commit is contained in:
jeffman 2019-03-01 19:47:18 -05:00
parent ecd1aaa461
commit 981585598b
1 changed files with 8 additions and 0 deletions

View File

@ -114,9 +114,17 @@ Function Create-Patch([string]$path1, [string]$path2, [string]$output_path)
}
.\build-tools.ps1
if ($LASTEXITCODE -ne 0) { exit -1 }
New-BlankFile $input_rom_file 16777216 0
.\build.ps1
if ($LASTEXITCODE -ne 0) { exit -1 }
Copy-Item $output_rom_file -Destination $output_rom_file_zeros
New-BlankFile $input_rom_file 16777216 255
.\build.ps1
if ($LASTEXITCODE -ne 0) { exit -1 }
Create-Patch $output_rom_file $output_rom_file_zeros $output_ips_file