Changeset 593 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu
- Timestamp:
- Jun 30, 2018, 8:27:04 AM (6 years ago)
- Location:
- trunk/Assembly_Library/Src/Menu/Dialog
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/Dialog.asm
r583 r593 32 32 ; AX: Selected item 33 33 ; Corrupts registers: 34 ; BX, CX, DX, SI,DI34 ; BX, CX, DX, DI 35 35 ;-------------------------------------------------------------------- 36 36 ALIGN JUMP_ALIGN … … 38 38 push es 39 39 push ds 40 mov di, bp 40 mov di, bp ; Backup parent MENU 41 41 mov cx, DIALOG_size 42 42 eENTER_STRUCT cx … … 52 52 53 53 mov ax, [bp+MENUINIT.wHighlightedItem] 54 mov si, [bp+DIALOG.fpDialogIO] ; Restore SI 54 55 eLEAVE_STRUCT DIALOG_size 55 56 pop ds -
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r592 r593 32 32 ; Nothing 33 33 ; Corrupts registers: 34 ; AX, BX, CX, DX, SI,DI34 ; AX, BX, CX, DX, DI 35 35 ;-------------------------------------------------------------------- 36 36 ALIGN JUMP_ALIGN 37 37 DialogFile_GetFileNameWithIoInDSSI: 38 ; We need to store default drive because user might change drive but 39 ; then cancel the file selection. In that case the original default directory 40 ; must be restored. 41 call Drive_GetDefaultToAL 42 push ax 43 38 44 mov bx, FileEventHandler 39 45 mov BYTE [si+FILE_DIALOG_IO.bUserCancellation], TRUE 40 jmp Dialog_DisplayWithDialogInputInDSSIandHandlerInBX 46 call Dialog_DisplayWithDialogInputInDSSIandHandlerInBX 47 48 ; Now restore the default drive if user cancellation 49 pop dx 50 cmp BYTE [si+FILE_DIALOG_IO.bUserCancellation], TRUE 51 je Drive_SetDefaultFromDL 52 ret 41 53 42 54
Note:
See TracChangeset
for help on using the changeset viewer.