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:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user