Keep AUDIO.RES; a Windows ? matches nothing too

The bank exclusion used AUDIO?.RES, which also swallowed AUDIO.RES - the
one-byte stub that has been in the audio folder since 1995. A '?' in a
Windows wildcard will match zero characters, not just one. Name the two
banks instead of pattern-matching them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-08-06 00:24:36 -05:00
co-authored by Claude Opus 5
parent a5faa6cf9b
commit cdccb16251
+7 -1
View File
@@ -106,7 +106,13 @@ foreach ($dir in 'AUDIO', 'GAUGE', 'VIDEO') {
# engine's LoadSBK path died with the sound cards, and AUDIO.INI's
# [AudioResources] section is commented out along with it. Shipping them adds
# 7MB to every download for nothing.
Get-ChildItem "$dist\AUDIO" -Filter 'AUDIO?.RES' | Remove-Item
#
# Named explicitly, NOT matched with a wildcard: 'AUDIO?.RES' also catches
# AUDIO.RES, because a Windows '?' will happily match zero characters.
#
foreach ($bank in 'AUDIO1.RES', 'AUDIO2.RES') {
Remove-Item "$dist\AUDIO\$bank" -ErrorAction SilentlyContinue
}
foreach ($file in 'RPDPL.INI', 'JOYSTICK.INI', 'RPL4.RES', 'TEST.EGG',
'libsndfile-1.dll', 'oalinst.exe') {
Copy-Item (Join-Path $assets $file) $dist