Moved force NTSC/PAL options to load dialog; added force HiROM and LoROM options to load dialog
This commit is contained in:
@@ -585,6 +585,7 @@ NEWSYM TrapMouseCursor, db 1
|
|||||||
NEWSYM KeyQuickClock, dd 0
|
NEWSYM KeyQuickClock, dd 0
|
||||||
NEWSYM KeyQuickMinimize, dd 0
|
NEWSYM KeyQuickMinimize, dd 0
|
||||||
NEWSYM ForceROMTiming, db 0
|
NEWSYM ForceROMTiming, db 0
|
||||||
|
NEWSYM ForceHiLoROM, db 0
|
||||||
|
|
||||||
GUIsave equ $-GUIRAdd
|
GUIsave equ $-GUIRAdd
|
||||||
|
|
||||||
@@ -954,7 +955,7 @@ NEWSYM GUIRestoreVars
|
|||||||
.failb
|
.failb
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
NEWSYM ComboHeader, db 'Key Combination File',26,1,0
|
NEWSYM ComboHeader, db 'Key Combination File',26,1,0
|
||||||
NEWSYM ComboBlHeader, times 23 db 0
|
NEWSYM ComboBlHeader, times 23 db 0
|
||||||
SECTION .text
|
SECTION .text
|
||||||
@@ -976,7 +977,6 @@ NEWSYM ExecGUISaveVars
|
|||||||
call Write_File
|
call Write_File
|
||||||
call Close_File
|
call Close_File
|
||||||
.failed
|
.failed
|
||||||
|
|
||||||
mov al,[NumComboGlob]
|
mov al,[NumComboGlob]
|
||||||
or al,al
|
or al,al
|
||||||
jz .failb
|
jz .failb
|
||||||
|
|||||||
@@ -907,14 +907,6 @@ GUIOptionKeys:
|
|||||||
call guimustrestartmsg
|
call guimustrestartmsg
|
||||||
.noalttimer
|
.noalttimer
|
||||||
%endif
|
%endif
|
||||||
cmp dh,'T'
|
|
||||||
jne .noforcentsc
|
|
||||||
GUIkeystoggleoptn byte[ForceROMTiming],1
|
|
||||||
.noforcentsc
|
|
||||||
cmp dh,'P'
|
|
||||||
jne .noforcepal
|
|
||||||
GUIkeystoggleoptn byte[ForceROMTiming],2
|
|
||||||
.noforcepal
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GUIGUIOptnsKeys:
|
GUIGUIOptnsKeys:
|
||||||
|
|||||||
@@ -1864,6 +1864,10 @@ DisplayGUIConfirmClick:
|
|||||||
GUIPButtonHoleLoad 9,163,byte[GUIloadfntype],0
|
GUIPButtonHoleLoad 9,163,byte[GUIloadfntype],0
|
||||||
GUIPButtonHoleLoad 9,171,byte[GUIloadfntype],1
|
GUIPButtonHoleLoad 9,171,byte[GUIloadfntype],1
|
||||||
GUIPButtonHoleLoad 9,179,byte[GUIloadfntype],2
|
GUIPButtonHoleLoad 9,179,byte[GUIloadfntype],2
|
||||||
|
GUIClickCButton6 144,177,byte[ForceROMTiming],1
|
||||||
|
GUIClickCButton6 144,187,byte[ForceROMTiming],2
|
||||||
|
GUIClickCButton6 184,177,byte[ForceHiLoROM],1
|
||||||
|
GUIClickCButton6 184,187,byte[ForceHiLoROM],2
|
||||||
ret
|
ret
|
||||||
|
|
||||||
DisplayGUIChoseSaveClick:
|
DisplayGUIChoseSaveClick:
|
||||||
@@ -2173,8 +2177,6 @@ DisplayGUIOptionClick:
|
|||||||
GUIClickCButtonW 11,176,byte[DisableScreenSaver]
|
GUIClickCButtonW 11,176,byte[DisableScreenSaver]
|
||||||
GUIClickCButtonat 11,186,byte[AlternateTimer]
|
GUIClickCButtonat 11,186,byte[AlternateTimer]
|
||||||
%endif
|
%endif
|
||||||
GUIClickCButton6 145,26,byte[ForceROMTiming],1
|
|
||||||
GUIClickCButton6 145,36,byte[ForceROMTiming],2
|
|
||||||
; Frameskip = 0
|
; Frameskip = 0
|
||||||
cmp byte[frameskip],0
|
cmp byte[frameskip],0
|
||||||
je near .autopress
|
je near .autopress
|
||||||
|
|||||||
@@ -453,6 +453,12 @@ DisplayGUILoad:
|
|||||||
GUIOuttextwin2 1,161,16,GUILoadText8
|
GUIOuttextwin2 1,161,16,GUILoadText8
|
||||||
GUIOuttextwin2 1,6,138,GUIcurrentdir
|
GUIOuttextwin2 1,6,138,GUIcurrentdir
|
||||||
|
|
||||||
|
GUIOuttextwin2 1,146,172,GUILoadTextB
|
||||||
|
GUIOuttextwin2 1,155,182,GUILoadTextC
|
||||||
|
GUIOuttextwin2 1,155,192,GUILoadTextD
|
||||||
|
GUIOuttextwin2 1,195,182,GUILoadTextE
|
||||||
|
GUIOuttextwin2 1,195,192,GUILoadTextF
|
||||||
|
|
||||||
mov dword[cloadmaxlen],39
|
mov dword[cloadmaxlen],39
|
||||||
cmp dword[GUIcurrentfilewin],0
|
cmp dword[GUIcurrentfilewin],0
|
||||||
jne .nofiles
|
jne .nofiles
|
||||||
@@ -481,6 +487,12 @@ DisplayGUILoad:
|
|||||||
GUIOuttextwin2 1,160,15,GUILoadText8
|
GUIOuttextwin2 1,160,15,GUILoadText8
|
||||||
GUIOuttextwin2 1,5,137,GUIcurrentdir
|
GUIOuttextwin2 1,5,137,GUIcurrentdir
|
||||||
|
|
||||||
|
GUIOuttextwin2 1,145,171,GUILoadTextB
|
||||||
|
GUIOuttextwin2 1,154,181,GUILoadTextC
|
||||||
|
GUIOuttextwin2 1,154,191,GUILoadTextD
|
||||||
|
GUIOuttextwin2 1,194,181,GUILoadTextE
|
||||||
|
GUIOuttextwin2 1,194,191,GUILoadTextF
|
||||||
|
|
||||||
mov dword[cloadmaxlen],39
|
mov dword[cloadmaxlen],39
|
||||||
cmp dword[GUIcurrentfilewin],0
|
cmp dword[GUIcurrentfilewin],0
|
||||||
jne .nofilesb
|
jne .nofilesb
|
||||||
@@ -495,7 +507,7 @@ DisplayGUILoad:
|
|||||||
%endif
|
%endif
|
||||||
.nofilesb
|
.nofilesb
|
||||||
|
|
||||||
DrawGUIButton 1,186,167,228,178,GUILoadText9,1,0,0
|
DrawGUIButton 1,186,157,228,168,GUILoadText9,1,0,0
|
||||||
mov al,[GUIWincol]
|
mov al,[GUIWincol]
|
||||||
mov byte[GUItextcolor],al
|
mov byte[GUItextcolor],al
|
||||||
; GUIOuttextwin2 1,6,16,GUILoadText1
|
; GUIOuttextwin2 1,6,16,GUILoadText1
|
||||||
@@ -688,10 +700,34 @@ DisplayGUILoad:
|
|||||||
.noloadtype
|
.noloadtype
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[showallext],1
|
cmp byte[showallext],1
|
||||||
jne .nocheck
|
jne .noshowallext
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
.nocheck
|
.noshowallext
|
||||||
GUIDisplayIconWin 1,10,187,[GUITemp]
|
GUIDisplayIconWin 1,10,187,[GUITemp]
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
|
cmp byte[ForceROMTiming],1
|
||||||
|
jne .noforcentsc
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
|
.noforcentsc
|
||||||
|
GUIDisplayIconWin 1,144,177,[GUITemp]
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
|
cmp byte[ForceROMTiming],2
|
||||||
|
jne .noforcepal
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
|
.noforcepal
|
||||||
|
GUIDisplayIconWin 1,144,187,[GUITemp]
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
|
cmp byte[ForceHiLoROM],1
|
||||||
|
jne .noforcelorom
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
|
.noforcelorom
|
||||||
|
GUIDisplayIconWin 1,184,177,[GUITemp]
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
|
cmp byte[ForceHiLoROM],2
|
||||||
|
jne .noforcehirom
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
|
.noforcehirom
|
||||||
|
GUIDisplayIconWin 1,184,187,[GUITemp]
|
||||||
|
|
||||||
; win#,X,Y start, %4-List Loc, %5-List size, %6-Screen size, %7-Bar Size
|
; win#,X,Y start, %4-List Loc, %5-List size, %6-Screen size, %7-Bar Size
|
||||||
DrawSlideBarWin 1,146,33,[GUIcurrentviewloc],[GUIfileentries],15,94,GUILStA
|
DrawSlideBarWin 1,146,33,[GUIcurrentviewloc],[GUIfileentries],15,94,GUILStA
|
||||||
@@ -779,11 +815,16 @@ GUILoadText2 db 'DISPLAY TYPE :',0
|
|||||||
GUILoadText3 db 'NORMAL 8.3 FORMAT',0
|
GUILoadText3 db 'NORMAL 8.3 FORMAT',0
|
||||||
GUILoadText4 db 'SNES HEADER NAME',0
|
GUILoadText4 db 'SNES HEADER NAME',0
|
||||||
GUILoadText5 db 'WIN95 LONG FILENAME',0
|
GUILoadText5 db 'WIN95 LONG FILENAME',0
|
||||||
GUILoadText6 db 'SHOW ALL EXTENSIONS',0
|
GUILoadText6 db 'SHOW ALL EXTENIONS',0
|
||||||
GUILoadText7 db 'FILENAME',0
|
GUILoadText7 db 'FILENAME',0
|
||||||
GUILoadText8 db 'DIRECTORY',0
|
GUILoadText8 db 'DIRECTORY',0
|
||||||
GUILoadText9 db 'LOAD',0
|
GUILoadText9 db 'LOAD',0
|
||||||
GUILoadTextA times 40 db 0
|
GUILoadTextA times 40 db 0
|
||||||
|
GUILoadTextB db 'FORCE OPTIONS :',0
|
||||||
|
GUILoadTextC db 'NTSC',0
|
||||||
|
GUILoadTextD db 'PAL',0
|
||||||
|
GUILoadTextE db 'LOROM',0
|
||||||
|
GUILoadTextF db 'HIROM',0
|
||||||
GUILStA dd 0,0,0
|
GUILStA dd 0,0,0
|
||||||
GUILStB dd 0,0,0
|
GUILStB dd 0,0,0
|
||||||
GUILoadPos db 0
|
GUILoadPos db 0
|
||||||
@@ -1372,8 +1413,6 @@ DisplayGUIOption:
|
|||||||
GUIOuttextwin2u 4,26,181,GUIOptionTextK,1
|
GUIOuttextwin2u 4,26,181,GUIOptionTextK,1
|
||||||
GUIOuttextwin2u 4,26,191,GUIOptionTextL,1
|
GUIOuttextwin2u 4,26,191,GUIOptionTextL,1
|
||||||
%endif
|
%endif
|
||||||
GUIOuttextwin2u 4,160,31,GUIOptionTextM,7
|
|
||||||
GUIOuttextwin2u 4,160,41,GUIOptionTextN,6
|
|
||||||
add byte[GUItextcolor],15
|
add byte[GUItextcolor],15
|
||||||
GUIOuttextwin2 4,5,15,[GUITemp]
|
GUIOuttextwin2 4,5,15,[GUITemp]
|
||||||
GUIOuttextwin2 4,25,30,GUIOptionText2
|
GUIOuttextwin2 4,25,30,GUIOptionText2
|
||||||
@@ -1400,8 +1439,6 @@ DisplayGUIOption:
|
|||||||
GUIOuttextwin2 4,25,180,GUIOptionTextK
|
GUIOuttextwin2 4,25,180,GUIOptionTextK
|
||||||
GUIOuttextwin2 4,25,190,GUIOptionTextL
|
GUIOuttextwin2 4,25,190,GUIOptionTextL
|
||||||
%endif
|
%endif
|
||||||
GUIOuttextwin2 4,159,30,GUIOptionTextM
|
|
||||||
GUIOuttextwin2 4,159,40,GUIOptionTextN
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[TimerEnable],0
|
cmp byte[TimerEnable],0
|
||||||
je .nocheckboxt
|
je .nocheckboxt
|
||||||
@@ -1517,18 +1554,6 @@ DisplayGUIOption:
|
|||||||
.win323
|
.win323
|
||||||
GUIDisplayIconWin 4,11,186,[GUITemp]
|
GUIDisplayIconWin 4,11,186,[GUITemp]
|
||||||
%endif
|
%endif
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
|
||||||
cmp byte[ForceROMTiming],1
|
|
||||||
jne .nocheckbox15
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
|
||||||
.nocheckbox15
|
|
||||||
GUIDisplayIconWin 4,145,26,[GUITemp]
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
|
||||||
cmp byte[ForceROMTiming],2
|
|
||||||
jne .nocheckbox16
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
|
||||||
.nocheckbox16
|
|
||||||
GUIDisplayIconWin 4,145,36,[GUITemp]
|
|
||||||
cmp byte[frameskip],0
|
cmp byte[frameskip],0
|
||||||
je near .auto
|
je near .auto
|
||||||
DrawGUIWinBox 4,75,13,93,21,167
|
DrawGUIWinBox 4,75,13,93,21,167
|
||||||
@@ -1593,8 +1618,6 @@ GUIOptionTextI db 'AUTO STATE SAVE/LOAD',0
|
|||||||
GUIOptionTextJ db 'DON',39,'T SAVE CUR PATH',0
|
GUIOptionTextJ db 'DON',39,'T SAVE CUR PATH',0
|
||||||
GUIOptionTextK db 'DISABLE SCREENSAVER',0
|
GUIOptionTextK db 'DISABLE SCREENSAVER',0
|
||||||
GUIOptionTextL db 'USE ALTERNATE TIMER',0
|
GUIOptionTextL db 'USE ALTERNATE TIMER',0
|
||||||
GUIOptionTextM db 'FORCE NTSC ROM',0
|
|
||||||
GUIOptionTextN db 'FORCE PAL ROM',0
|
|
||||||
GUIOptionText8 db '-',0
|
GUIOptionText8 db '-',0
|
||||||
GUIOptionText9 db '+',0
|
GUIOptionText9 db '+',0
|
||||||
GUIOptionText10 db '-',0
|
GUIOptionText10 db '-',0
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ EXTSYM GUIsmcfind,GUIsfcfind,GUIswcfind,GUIfigfind,GUIfind058,GUIfind078,GUIfind
|
|||||||
EXTSYM GUIfindUSA,GUIfindJAP,GUIfindZIP,GUIfind1,DTALoc,GUIfindall
|
EXTSYM GUIfindUSA,GUIfindJAP,GUIfindZIP,GUIfind1,DTALoc,GUIfindall
|
||||||
EXTSYM spc7110romptr,allocspc7110
|
EXTSYM spc7110romptr,allocspc7110
|
||||||
EXTSYM SRAMDir,SRAMDrive,cfgloadsdir,fnamest,statefileloc
|
EXTSYM SRAMDir,SRAMDrive,cfgloadsdir,fnamest,statefileloc
|
||||||
EXTSYM ForcePal,ForceROMTiming,InitDir,InitDrive,enterpress,frameskip
|
EXTSYM ForcePal,ForceROMTiming,ForceHiLoROM,InitDir,InitDrive,enterpress,frameskip
|
||||||
EXTSYM gotoroot,headdata,printnum,romispal
|
EXTSYM gotoroot,headdata,printnum,romispal
|
||||||
EXTSYM InitFxTables,SFXSRAM,SfxR1,SfxR2,SfxSCMR,SfxSFR,finterleave
|
EXTSYM InitFxTables,SFXSRAM,SfxR1,SfxR2,SfxSCMR,SfxSFR,finterleave
|
||||||
EXTSYM initregr,initregw,memtabler16,DSP1Read16b3F,memaccessbankr16
|
EXTSYM initregr,initregw,memtabler16,DSP1Read16b3F,memaccessbankr16
|
||||||
@@ -5598,7 +5598,9 @@ NEWSYM CheckROMType
|
|||||||
|
|
||||||
mov byte[ROMTypeNOTFound],1
|
mov byte[ROMTypeNOTFound],1
|
||||||
.donecheck
|
.donecheck
|
||||||
|
mov al,[ForceHiLoROM]
|
||||||
|
mov byte[forceromtype],al
|
||||||
|
xor al,al
|
||||||
cmp byte[forceromtype],0
|
cmp byte[forceromtype],0
|
||||||
je .noforce
|
je .noforce
|
||||||
mov al,[forceromtype]
|
mov al,[forceromtype]
|
||||||
|
|||||||
Reference in New Issue
Block a user