Fixed sound option saving

This commit is contained in:
pagefault
2001-10-30 22:30:40 +00:00
parent 9b3b12c3be
commit a94c268dc8
4 changed files with 10 additions and 12 deletions

View File

@@ -398,7 +398,7 @@ NEWSYM pl2p209b, db 0
NEWSYM pl3p209b, db 0 NEWSYM pl3p209b, db 0
NEWSYM pl4p209b, db 0 NEWSYM pl4p209b, db 0
JoyPad1Move db 0 JoyPad1Move db 0
FirstTimeData db 0 NEWSYM FirstTimeData, db 0
NEWSYM PrevSWFix, db 0 NEWSYM PrevSWFix, db 0
NEWSYM CalibXmin, dd 0 NEWSYM CalibXmin, dd 0
NEWSYM CalibYmin, dd 0 NEWSYM CalibYmin, dd 0
@@ -2162,10 +2162,6 @@ NEWSYM StartGUI
jne .nofirsttime jne .nofirsttime
call guifirsttimemsg call guifirsttimemsg
mov byte[FirstTimeData],1 mov byte[FirstTimeData],1
%ifndef __MSDOS__
mov byte[soundon],1
mov byte[cfgsoundon],1
%endif
.nofirsttime .nofirsttime
cmp dword[GUICTimer],0 cmp dword[GUICTimer],0
je .notimer je .notimer

View File

@@ -199,8 +199,6 @@ NEWSYM SystemInit
mov byte[esi+12+256],0 mov byte[esi+12+256],0
%endif %endif
mov byte[spcon],1
; Get and set the initial directory ; Get and set the initial directory
%ifdef __LINUX__ %ifdef __LINUX__
call obtaindir call obtaindir
@@ -237,7 +235,6 @@ NEWSYM SystemInit
mov ebx,SRAMDir mov ebx,SRAMDir
call Change_Dir call Change_Dir
%endif %endif
mov byte[soundon],0
; call getblaster ; get set blaster environment ; call getblaster ; get set blaster environment
; cmp byte[Force8b],1 ; cmp byte[Force8b],1
; jne .noforce8b ; jne .noforce8b

View File

@@ -21,7 +21,7 @@ EXTSYM getcfg,soundon,SBHDMA,StereoSound,init,GUIRestoreVars,GUIClick,MouseDis
EXTSYM ConvertJoyMap,ConvertJoyMap1,ConvertJoyMap2,printhex,InitSPC EXTSYM ConvertJoyMap,ConvertJoyMap1,ConvertJoyMap2,printhex,InitSPC
EXTSYM StartUp,PrintStr,WaitForKey,PrintChar,ZFileSystemInit EXTSYM StartUp,PrintStr,WaitForKey,PrintChar,ZFileSystemInit
EXTSYM SPCDisable,SystemInit,allocmem EXTSYM SPCDisable,SystemInit,allocmem
EXTSYM FPSOn,FPSAtStart EXTSYM FPSOn,FPSAtStart,cfgsoundon,FirstTimeData
EXTSYM xa EXTSYM xa
EXTSYM SBPort,SBInt,SBIrq,SBDMA,SBDMAPage,SBHDMAPage,getenv,vibracard EXTSYM SBPort,SBInt,SBIrq,SBDMA,SBDMAPage,SBHDMAPage,getenv,vibracard
EXTSYM ram7fa,wramdataa EXTSYM ram7fa,wramdataa
@@ -90,6 +90,14 @@ NEWSYM zstart
xor eax,eax xor eax,eax
.nocmdlinenetplay .nocmdlinenetplay
%ifndef __MSDOS__
cmp byte[FirstTimeData],1
je .nofirsttime
mov byte[soundon],1
mov byte[cfgsoundon],1
.nofirsttime
%endif
call setnoise call setnoise
call InitSPC call InitSPC
call allocmem ;allocate memory call allocmem ;allocate memory

View File

@@ -190,8 +190,6 @@ NEWSYM SystemInit
mov byte[esi+11+256],'T' mov byte[esi+11+256],'T'
mov byte[esi+12+256],0 mov byte[esi+12+256],0
mov byte[spcon],1
; Get and set the initial directory ; Get and set the initial directory
mov ebx,InitDir mov ebx,InitDir
mov edx,InitDrive mov edx,InitDrive
@@ -207,7 +205,6 @@ NEWSYM SystemInit
call ccmdline call ccmdline
call tparms call tparms
call preparedir call preparedir
mov byte[soundon],0
; call getblaster ; get set blaster environment ; call getblaster ; get set blaster environment
; cmp byte[Force8b],1 ; cmp byte[Force8b],1
; jne .noforce8b ; jne .noforce8b