plan9fox/rc/bin/dmus
qwx f5c6a870bf doom: fix music for patch wads
revert last change, which used games/wadfs to expose genmidi and music lumps.
replacements from patch wads were never seen that way.  instead, write genmidi
and music lumps to /tmp and play them from there.
2018-10-21 00:11:39 +02:00

10 lines
201 B
Bash
Executable file

#!/bin/rc
if(test -f /tmp/genmidi.*)
c=(games/dmid -i /tmp/genmidi.* '|' games/opl3)
if not
c=(games/midi -c)
if(~ `{file -m $1} audio/mus)
c=(games/mus '<' $1 '|' $c)
if not
c=('<' $1 $c)
eval $c