From 62e0729de4b856d1230e5fd2d6558c188386a683 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 23 Apr 2023 10:30:44 +0800 Subject: Added global last_dir[] to record last file selector dir. --- include/gui.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/gui.h b/include/gui.h index c5eeaed..77bfb60 100644 --- a/include/gui.h +++ b/include/gui.h @@ -21,6 +21,7 @@ #ifndef DS81_GUI_H #define DS81_GUI_H +void GUI_Init(void); int GUI_Menu(const char *opts[]); void GUI_Alert(int fatal, const char *text); void GUI_Config(void); @@ -30,4 +31,6 @@ int GUI_InputName(const char *prompt, const char *ext, char name[], int maxlen); int GUI_Input(const char *prompt, char text[], int maxlen); +extern char last_dir[FILENAME_MAX]; + #endif /* DS81_GUI_H */ -- cgit v1.2.3