mirror of
https://github.com/mi57730/a2d.git
synced 2024-06-26 12:29:28 +00:00
Clear selection on directory open. Fixes #17
This commit is contained in:
parent
172f1f435c
commit
55296c2201
|
@ -29,6 +29,7 @@
|
||||||
* File > Quit returns to ProDOS 8 selector, and /RAM is reattached. (#3)
|
* File > Quit returns to ProDOS 8 selector, and /RAM is reattached. (#3)
|
||||||
* Date DA: Read-only on systems with a clock. On systems without a clock, date is saved for next session. (#30, #39)
|
* Date DA: Read-only on systems with a clock. On systems without a clock, date is saved for next session. (#30, #39)
|
||||||
* Calculator DA: don't mis-paint when moved offscreen and other fixes. (#33, #34)
|
* Calculator DA: don't mis-paint when moved offscreen and other fixes. (#33, #34)
|
||||||
|
* Sort Directory DA: don't need to click before sorting. (#17)
|
||||||
* IIgs-specific: color DHR is re-enabled on exit. (#43)
|
* IIgs-specific: color DHR is re-enabled on exit. (#43)
|
||||||
* IIgs emulators no longer crash on startup. (#85)
|
* IIgs emulators no longer crash on startup. (#85)
|
||||||
* SELECTOR.LIST created if missing. (#92)
|
* SELECTOR.LIST created if missing. (#92)
|
||||||
|
|
|
@ -1792,10 +1792,17 @@ L4DC2: ldy #1
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
||||||
.proc cmd_open
|
.proc cmd_open
|
||||||
ldx #$00
|
ldx #0
|
||||||
|
stx dir_count
|
||||||
|
|
||||||
L4DEC: cpx selected_icon_count
|
L4DEC: cpx selected_icon_count
|
||||||
bne L4DF2
|
bne L4DF2
|
||||||
rts
|
|
||||||
|
;; Were any directories opened?
|
||||||
|
lda dir_count
|
||||||
|
beq done
|
||||||
|
jsr clear_selection
|
||||||
|
done: rts
|
||||||
|
|
||||||
L4DF2: txa
|
L4DF2: txa
|
||||||
pha
|
pha
|
||||||
|
@ -1809,6 +1816,7 @@ L4DF2: txa
|
||||||
ldy #$00
|
ldy #$00
|
||||||
lda ($06),y
|
lda ($06),y
|
||||||
jsr open_folder_or_volume_icon
|
jsr open_folder_or_volume_icon
|
||||||
|
inc dir_count
|
||||||
jmp L4E14
|
jmp L4E14
|
||||||
|
|
||||||
L4E10: cmp #$40
|
L4E10: cmp #$40
|
||||||
|
@ -1862,6 +1870,11 @@ L4E51: lda ($06),y
|
||||||
L4E6E: jmp launch_file
|
L4E6E: jmp launch_file
|
||||||
|
|
||||||
L4E71: .byte 0
|
L4E71: .byte 0
|
||||||
|
|
||||||
|
;; Count of opened volumes/folders; if non-zero,
|
||||||
|
;; selection must be cleared before finishing.
|
||||||
|
dir_count:
|
||||||
|
.byte 0
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
Loading…
Reference in New Issue
Block a user