mirror of https://github.com/wwarthen/RomWBW.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
433 B
19 lines
433 B
function StripFile($Filename)
|
|
{
|
|
$Content = Get-Content "${Filename}.prn"
|
|
$Content = $Content -replace "\0", ""
|
|
$Content = $Content -replace "\e.", ""
|
|
$Content = $Content -replace "\x1A", ""
|
|
$Content = $Content -replace "\0", ""
|
|
|
|
#$Content = $Content -replace "\\", "\\"
|
|
|
|
|
|
Set-Content "${Filename}.txt" $Content[0..($Content.count - 3)]
|
|
}
|
|
|
|
StripFile("part1")
|
|
StripFile("part2")
|
|
StripFile("part3")
|
|
|
|
return
|
|
|