315,6 → 315,9 |
; -------------------------------------------------------- ; |
.Data? ; ------------------------------------------------- ; |
; -------------------------------------------------------- ; |
Extern AppParams: Byte |
Extern AppPath: Byte |
|
BoxLib Dword ? |
ProcLib Dword ? |
|
576,6 → 579,10 |
Invoke GetProcAddress, ProcLib, CStr("OpenDialog_start") |
mov OpenDialogStart, eax |
|
; Copy command line parameters to EditBox |
; Assume EDIT1_TEXT_BUFFER_SIZE > PARAMS_SIZE(defined in linker-script) |
Invoke EditBoxSetText, Offset Edit1, Offset AppParams |
|
; it need for case if spaces are present in filepath |
lea eax, [OpenFilePathBuffer + 1] |
mov OD.openfile_path, eax |