mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
tune.com: Updated to support using HBIOS sound driver
A new command line switch has been added '--hbios'. Using this switch after the filename, will cause tune.com to play thru the HBIOS sound driver MYM file types are not supported thru HBIOS yet.
This commit is contained in:
33
Source/Apps/Tune/cli.inc
Normal file
33
Source/Apps/Tune/cli.inc
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
|
||||
CLI_ABRT_IF_OPT_FIRST:
|
||||
LD A, (FCB+1)
|
||||
CP '-' ; OPTION FIRST OR - MISSING FILENAME?
|
||||
JP Z, ERRCMD ; SHOW USAGE
|
||||
RET
|
||||
|
||||
CLI_HAVE_HBIOS_SWITCH:
|
||||
LD HL, CLIARGS ; TEST FOR --HBIOS ON COMNMAND LINE
|
||||
LD DE, HBIOSOPT
|
||||
CALL STRINDEX
|
||||
JR NZ, CLI_HAVE_HBIOS_SWITCH1
|
||||
OR $FF ; IS NOT HBIOS
|
||||
LD (HBIOSMD), A
|
||||
RET
|
||||
CLI_HAVE_HBIOS_SWITCH1:
|
||||
AND 0 ; IS HBIOS
|
||||
LD (HBIOSMD), A
|
||||
RET
|
||||
|
||||
CLI_ABRT_UNSUPPFILTYP:
|
||||
PUSH AF
|
||||
ISHBIOS
|
||||
JR Z, CLI_ABRT_UNSUPPFILTYP1
|
||||
POP AF
|
||||
CP TYPMYM
|
||||
RET NZ
|
||||
ERRWITHMSG(MSGUNSUP) ; EXIT WITH UNSUPPORTED FILE TYPE MESSAGE
|
||||
|
||||
CLI_ABRT_UNSUPPFILTYP1:
|
||||
POP AF
|
||||
RET
|
||||
Reference in New Issue
Block a user