mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-22 06:31:31 +00:00
FIX: search cache incorrectly returned if a shorter input buffer matched
This commit is contained in:
parent
89d2f3cdc4
commit
7afebf6b04
@ -70,20 +70,14 @@ def main():
|
||||
if not index4: continue
|
||||
if index4 != index3:
|
||||
cache[a][b][c][d] = index4
|
||||
if (len(cache[a][b][c]) == 1) and (" " in cache[a][b][c]):
|
||||
cache[a][b][c] = cache[a][b][c][" "]
|
||||
elif not cache[a][b][c]:
|
||||
if not cache[a][b][c]:
|
||||
del cache[a][b][c]
|
||||
if (len(cache[a][b]) == 1) and (" " in cache[a][b]):
|
||||
cache[a][b] = cache[a][b][" "]
|
||||
elif not cache[a][b]:
|
||||
if not cache[a][b]:
|
||||
del cache[a][b]
|
||||
if (len(cache[a]) == 1) and (" " in cache[a]):
|
||||
cache[a] = cache[a][" "]
|
||||
elif not cache[a]:
|
||||
if not cache[a]:
|
||||
del cache[a]
|
||||
|
||||
print('*=$B000')
|
||||
print('*=$A000')
|
||||
for a in cache:
|
||||
print(f' !text "{a}"')
|
||||
if type(cache[a]) == int:
|
||||
|
BIN
res/CACHE00.IDX
BIN
res/CACHE00.IDX
Binary file not shown.
BIN
res/CACHE01.IDX
BIN
res/CACHE01.IDX
Binary file not shown.
BIN
res/CACHE10.IDX
BIN
res/CACHE10.IDX
Binary file not shown.
BIN
res/CACHE11.IDX
BIN
res/CACHE11.IDX
Binary file not shown.
@ -20,14 +20,14 @@ HGR4.IDX=Type(06),AuxType(4000),Access(C3)
|
||||
HGR5.IDX=Type(06),AuxType(4000),Access(C3)
|
||||
HGR6.IDX=Type(06),AuxType(4000),Access(C3)
|
||||
DHGR.IDX=Type(06),AuxType(4000),Access(C3)
|
||||
SEARCH00.IDX=Type(06),AuxType(8200),Access(C3)
|
||||
SEARCH01.IDX=Type(06),AuxType(8200),Access(C3)
|
||||
SEARCH10.IDX=Type(06),AuxType(8200),Access(C3)
|
||||
SEARCH11.IDX=Type(06),AuxType(B000),Access(C3)
|
||||
CACHE00.IDX=Type(06),AuxType(B000),Access(C3)
|
||||
CACHE01.IDX=Type(06),AuxType(B000),Access(C3)
|
||||
CACHE10.IDX=Type(06),AuxType(B000),Access(C3)
|
||||
CACHE11.IDX=Type(06),AuxType(B000),Access(C3)
|
||||
SEARCH00.IDX=Type(06),AuxType(6000),Access(C3)
|
||||
SEARCH01.IDX=Type(06),AuxType(6000),Access(C3)
|
||||
SEARCH10.IDX=Type(06),AuxType(6000),Access(C3)
|
||||
SEARCH11.IDX=Type(06),AuxType(6000),Access(C3)
|
||||
CACHE00.IDX=Type(06),AuxType(A000),Access(C3)
|
||||
CACHE01.IDX=Type(06),AuxType(A000),Access(C3)
|
||||
CACHE10.IDX=Type(06),AuxType(A000),Access(C3)
|
||||
CACHE11.IDX=Type(06),AuxType(A000),Access(C3)
|
||||
COVER=Type(06),AuxType(2000),Access(C3)
|
||||
TITLE=Type(06),AuxType(2000),Access(C3)
|
||||
HELP=Type(06),AuxType(2000),Access(C3)
|
||||
|
@ -123,7 +123,7 @@ ResetVector ; 6 bytes, copied to $100
|
||||
!source "src/hw.vbl.a"
|
||||
!source "src/ui.wait.a"
|
||||
gSearchStore
|
||||
!word $8200
|
||||
!word $6000
|
||||
gSlideshowStore
|
||||
!word $0800
|
||||
gGlobalPrefsStore
|
||||
|
@ -116,8 +116,8 @@ UI_ToPlay = $1FF7
|
||||
gValLen = $1F80
|
||||
gVal = $1F81
|
||||
|
||||
gSearchIndex = $8200
|
||||
gSearchCache = $B000
|
||||
gSearchIndex = $6000
|
||||
gSearchCache = $A000
|
||||
|
||||
; LC RAM 1
|
||||
iLoadFileDirect = $FFEF
|
||||
|
@ -15,7 +15,7 @@
|
||||
; - kCheat
|
||||
;
|
||||
|
||||
kGlobalPrefsBuffer = $8000
|
||||
kGlobalPrefsBuffer = $BD00
|
||||
|
||||
; valid pref keys
|
||||
kNextAttract
|
||||
|
Loading…
Reference in New Issue
Block a user