f5c6a870bf
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.
10 lines
201 B
Bash
Executable file
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
|