From 5799ec4a9263f6a9a43532bf7488db7b1b41636e Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sun, 12 Dec 2021 19:08:45 +0300 Subject: panel: set current directory for shell --- Library/UefiShellUfmCommandLib/panel.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') diff --git a/Library/UefiShellUfmCommandLib/panel.c b/Library/UefiShellUfmCommandLib/panel.c index 328a7ef..2dde818 100644 --- a/Library/UefiShellUfmCommandLib/panel.c +++ b/Library/UefiShellUfmCommandLib/panel.c @@ -150,6 +150,7 @@ STATIC VOID set_cwd(struct panel_ctx *p, CONST CHAR16 *path) if(path) StrnCatGrow(&p->cwd, NULL, path, 0); + gEfiShellProtocol->SetCurDir(NULL, p->cwd); whline(p->wcwd, 0, 0, BOXDRAW_HORIZONTAL, p->wcwd->cur_attr, p->wcwd->width); wattrset(p->wcwd, EFI_TEXT_ATTR(EFI_WHITE, EFI_BLACK)); mvwprintf(p->wcwd, 0, 0, L" %s ", p->cwd ? p->cwd : L" "); -- cgit v1.2.3-18-g5258