Fixed sound on first run
This commit is contained in:
@@ -170,6 +170,10 @@ NEWSYM SystemInit
|
||||
mov byte[esi+11+256],'t'
|
||||
mov byte[esi+12+256],0
|
||||
|
||||
mov byte[spcon],1
|
||||
mov byte[soundon],1
|
||||
mov byte[cfgsoundon],1
|
||||
|
||||
; Get and set the initial directory
|
||||
%ifdef __LINUX__
|
||||
call obtaindir
|
||||
|
||||
@@ -21,7 +21,7 @@ EXTSYM getcfg,soundon,SBHDMA,StereoSound,init,GUIRestoreVars,GUIClick,MouseDis
|
||||
EXTSYM ConvertJoyMap,ConvertJoyMap1,ConvertJoyMap2,printhex,InitSPC
|
||||
EXTSYM StartUp,PrintStr,WaitForKey,PrintChar,ZFileSystemInit
|
||||
EXTSYM SPCDisable,SystemInit,allocmem
|
||||
EXTSYM FPSOn,FPSAtStart,cfgsoundon,FirstTimeData
|
||||
EXTSYM FPSOn,FPSAtStart,cfgsoundon
|
||||
EXTSYM xa
|
||||
EXTSYM SBPort,SBInt,SBIrq,SBDMA,SBDMAPage,SBHDMAPage,getenv,vibracard
|
||||
EXTSYM ram7fa,wramdataa
|
||||
@@ -69,14 +69,6 @@ NEWSYM zstart
|
||||
|
||||
cld ;clear direction flag
|
||||
|
||||
%ifndef __MSDOS__
|
||||
cmp byte[FirstTimeData],1
|
||||
je .nofirsttime
|
||||
mov byte[soundon],1
|
||||
mov byte[cfgsoundon],1
|
||||
.nofirsttime
|
||||
%endif
|
||||
|
||||
call setnoise
|
||||
call InitSPC
|
||||
call allocmem ;allocate memory
|
||||
|
||||
@@ -189,6 +189,10 @@ NEWSYM SystemInit
|
||||
mov byte[esi+11+256],'t'
|
||||
mov byte[esi+12+256],0
|
||||
|
||||
mov byte[spcon],1
|
||||
mov byte[soundon],1
|
||||
mov byte[cfgsoundon],1
|
||||
|
||||
; Get and set the initial directory
|
||||
mov ebx,InitDir
|
||||
mov edx,InitDrive
|
||||
|
||||
Reference in New Issue
Block a user