Changeset 593 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
- Timestamp:
- Jun 30, 2018, 8:27:04 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.