reset on exit more.
This commit is contained in:
parent
abc48259bd
commit
b52fdf512c
1 changed files with 3 additions and 3 deletions
6
cimp.bas
6
cimp.bas
|
|
@ -6,7 +6,7 @@ declare library "terminkey"
|
||||||
end declare
|
end declare
|
||||||
|
|
||||||
$console:only
|
$console:only
|
||||||
|
on error goto quit
|
||||||
const KEY_UP = 1001
|
const KEY_UP = 1001
|
||||||
const KEY_DOWN = 1002
|
const KEY_DOWN = 1002
|
||||||
const KEY_RIGHT = 1003
|
const KEY_RIGHT = 1003
|
||||||
|
|
@ -19,7 +19,7 @@ $end if
|
||||||
redim file(0) as string
|
redim file(0) as string
|
||||||
if command$ = "" then
|
if command$ = "" then
|
||||||
print "please specify file to play."
|
print "please specify file to play."
|
||||||
system
|
goto quit
|
||||||
end if
|
end if
|
||||||
|
|
||||||
echooff
|
echooff
|
||||||
|
|
@ -102,7 +102,7 @@ i=0
|
||||||
musichandle = _sndopen(file(i))
|
musichandle = _sndopen(file(i))
|
||||||
if musichandle = 0 then
|
if musichandle = 0 then
|
||||||
print "Error: could not open file "; file(i)
|
print "Error: could not open file "; file(i)
|
||||||
system
|
goto quit
|
||||||
end if
|
end if
|
||||||
_sndvol musichandle, volume
|
_sndvol musichandle, volume
|
||||||
_sndplay musichandle
|
_sndplay musichandle
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue