skip . and .. for dir entry purposes. It's too confusing for finder!

This commit is contained in:
Kelvin Sherlock 2015-09-04 11:26:00 -04:00
parent 9922f57cca
commit 7286bddc11
1 changed files with 13 additions and 0 deletions

View File

@ -425,6 +425,11 @@ next
done
; - 2 for . and ..
dec dirent_entry
dec dirent_entry
; also reset the displacement to 0.
lda #0
ldy #fcr.dirent_entry
@ -634,6 +639,10 @@ exit
; therefore the only special case is dirent_entry == 0 (since displacement 1 -> read entry 0)
;
;
; 9/4/2015 -- The first two entries (. and ..) should be skipped.
;
;
find_absolute_dirent procname
with data
@ -665,6 +674,10 @@ find_next_dirent proc
@first
dec displacement
bmi eod
; set dirent_offset = dirent_size * 2 to skip over . and ..
lda dirent_size
asl a ; x 2
sta dirent_offset
@ok
; make sure dir not empty (should never happen...)