add games.conf column in anticipation of DHGR titles

This commit is contained in:
4am 2020-03-08 16:12:36 -04:00
parent 871e50a5c1
commit b2b28f6288
2 changed files with 8 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -53,13 +53,17 @@ ParseGamesList
@filterOnMemory
jsr IncAndGetChar ; get second filter character ('1' if game requires 128K)
cmp #$30 ; '0' -> no filtering on memory
beq @parseCheatsAvailable
beq @parseDHGRTitle
cmp #$31 ; not '0' or '1' -> ignore entire line
bne @skipLine
bit zpMachineStatus
bvc @skipLine ; game requires 128K but we only have 64K, so ignore entire line
@parseDHGRTitle
jsr IncAndGetChar ; get third character ('1' if game has DHGR title)
and #$01
pha
@parseCheatsAvailable
jsr IncAndGetChar ; get third character (cheat category, int)
jsr IncAndGetChar ; get fourth character (cheat category, int)
and #$0F
pha
@swallowComma
@ -95,6 +99,7 @@ ParseGamesList
pla ; pop cheat category
dex ; X = new OKVS length - 1
sta gCheatsAvailable,x
pla ; pop DHGR title
clc
bcc @newkey ; always branches