This commit is contained in:
4am 2019-06-18 16:54:18 -04:00
commit 03de1b2a1a
3 changed files with 20 additions and 4 deletions

View File

@ -37,6 +37,20 @@ BestMatchScore
BestMatchIndex BestMatchIndex
!byte 0 !byte 0
;------------------------------------------------------------------------------
; ResetTextRank
; reset the Match variables to allow re-scanning (e.g. because of backspace)
; in: nothing
; out: X, MatchCount, BestMatchScore, BestMatchIndex zeroed
;------------------------------------------------------------------------------
ResetTextRank
ldx #0
stx MatchCount
stx BestMatchScore
stx BestMatchIndex
rts
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; TextRankCallback ; TextRankCallback
; callback called by okvs_iter_values on gGamesListStore ; callback called by okvs_iter_values on gGamesListStore
@ -132,6 +146,7 @@ TextRankCallback
pha pha
ldy #1 ldy #1
lda (zpstring),y lda (zpstring),y
+LOW_ASCII_TO_LOWER
sta firstletter sta firstletter
pla pla
ldx InputBuffer ldx InputBuffer

View File

@ -39,7 +39,8 @@ InputLoop
cmp #$7F ; delete key cmp #$7F ; delete key
bne + bne +
- ldx #kInputBackspace - jsr ResetTextRank
ldx #kInputBackspace
bne InputDispatch ; always branches bne InputDispatch ; always branches
+ cmp #$08 ; left arrow = delete + cmp #$08 ; left arrow = delete

View File

@ -121,9 +121,9 @@ cscript /nologo bin\rsync.js res\demo\* build\DEMO >>build\log
cscript /nologo bin\rsync.js res\fx\* build\FX >>build\log cscript /nologo bin\rsync.js res\fx\* build\FX >>build\log
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/FX" "build\FX" >>build\log %CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/FX" "build\FX" >>build\log
%CADIUS% CREATEFOLDER "build\%DISK%" "/%VOLUME%/X/" >>build\log %CADIUS% CREATEFOLDER "build\%DISK%" "/%VOLUME%/X/" >>build\log
cscript /nologo bin\do2po.js res\dsk build\po rem cscript /nologo bin\do2po.js res\dsk build\po
cscript /nologo bin\rsync.js res\dsk\*.po build\po rem cscript /nologo bin\rsync.js res\dsk\*.po build\po
cscript /nologo bin\extract.js build\po >>build\log rem cscript /nologo bin\extract.js build\po >>build\log
echo y|1>nul 2>nul del /s build\X\.DS_Store echo y|1>nul 2>nul del /s build\X\.DS_Store
echo y|1>nul 2>nul del /s build\X\PRODOS echo y|1>nul 2>nul del /s build\X\PRODOS
echo y|1>nul 2>nul del /s build\X\LOADER.SYSTEM echo y|1>nul 2>nul del /s build\X\LOADER.SYSTEM