mirror of https://github.com/wwarthen/RomWBW.git
6 changed files with 157 additions and 13 deletions
@ -0,0 +1,6 @@ |
|||||
|
@echo off |
||||
|
setlocal |
||||
|
|
||||
|
for %%f in (*.def) do ( |
||||
|
PowerShell -ExecutionPolicy Unrestricted .\BuildImg.ps1 %%~nf || exit /b |
||||
|
) |
||||
@ -0,0 +1,66 @@ |
|||||
|
param([string]$Image) |
||||
|
|
||||
|
# If a PowerShell exception occurs, just stop the script immediately. |
||||
|
$ErrorAction = 'Stop' |
||||
|
|
||||
|
$DefFile = $Image + ".def" |
||||
|
|
||||
|
$ImgFile = "..\..\Binary\hd1k_" + $Image + ".img" |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
$SliceList = @() |
||||
|
|
||||
|
ForEach ($Line in Get-Content $DefFile) |
||||
|
{ |
||||
|
$Line = $Line.Trim() |
||||
|
|
||||
|
if (($Line.Length -eq 0) -or ($Line[0] -eq "#")) |
||||
|
{ |
||||
|
continue |
||||
|
} |
||||
|
|
||||
|
$SliceList += $Line |
||||
|
} |
||||
|
|
||||
|
function CreateImageFile { |
||||
|
param ( |
||||
|
[string]$Format = "" # hd1k or hd512 |
||||
|
) |
||||
|
|
||||
|
$ImgFile = "..\..\Binary\" + $Format + "_" + $Image + ".img" |
||||
|
|
||||
|
$FileList = "" |
||||
|
|
||||
|
"Generating $ImgFile using $DefFile..." |
||||
|
|
||||
|
ForEach ($Slice in $SliceList) |
||||
|
{ |
||||
|
$File = "..\..\Binary\" + $Format + "_" + $Slice + ".img" |
||||
|
|
||||
|
if (!(Test-Path $File)) |
||||
|
{ |
||||
|
"Slice input file """ + $File + """ not found!!!" |
||||
|
exit 1 |
||||
|
} |
||||
|
|
||||
|
if ($FileList.Length -gt 0) |
||||
|
{ |
||||
|
$FileList += "+" |
||||
|
} |
||||
|
|
||||
|
$FileList += $File |
||||
|
} |
||||
|
|
||||
|
if ($Format -eq "hd1k") |
||||
|
{ |
||||
|
$FileList = "hd1k_prefix.dat+" + $FileList |
||||
|
} |
||||
|
cmd.exe /c copy /b $FileList $ImgFile |
||||
|
} |
||||
|
|
||||
|
CreateImageFile "hd512" |
||||
|
CreateImageFile "hd1k" |
||||
|
|
||||
|
exit 0 |
||||
@ -0,0 +1,25 @@ |
|||||
|
# This image definition shows how to generate |
||||
|
# an disk image containing all of the available |
||||
|
# slices. |
||||
|
|
||||
|
aztecc |
||||
|
bascomp |
||||
|
blank |
||||
|
cobol |
||||
|
cowgol |
||||
|
cpm22 |
||||
|
cpm3 |
||||
|
fortran |
||||
|
games |
||||
|
hitechc |
||||
|
infocom |
||||
|
msxroms1 |
||||
|
msxroms2 |
||||
|
nzcom |
||||
|
qpm |
||||
|
tpascal |
||||
|
ws4 |
||||
|
z3plus |
||||
|
z80asm |
||||
|
zpm3 |
||||
|
zsdos |
||||
@ -0,0 +1,8 @@ |
|||||
|
# This is the ubiquituous Combo image for RomWBW |
||||
|
|
||||
|
cpm22 |
||||
|
zsdos |
||||
|
nzcom |
||||
|
cpm3 |
||||
|
zpm3 |
||||
|
ws4 |
||||
Loading…
Reference in new issue