mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-08-01 02:30:12 -06:00
libui: primp file picker dialogs
* support for filters, for Windows (tested) and GTK (theoretical) * add extra parameter for setting the start directory, but not supported yet
This commit is contained in:
@ -32,7 +32,7 @@ static char *runSavePanel(NSWindow *parent, NSSavePanel *s)
|
||||
return filename;
|
||||
}
|
||||
|
||||
char *uiOpenFile(uiWindow *parent)
|
||||
char *uiOpenFile(uiWindow *parent, char* filter, char* initpath)
|
||||
{
|
||||
NSOpenPanel *o;
|
||||
|
||||
@ -46,7 +46,7 @@ char *uiOpenFile(uiWindow *parent)
|
||||
return runSavePanel(windowWindow(parent), o);
|
||||
}
|
||||
|
||||
char *uiSaveFile(uiWindow *parent)
|
||||
char *uiSaveFile(uiWindow *parent, char* filter, char* initpath)
|
||||
{
|
||||
NSSavePanel *s;
|
||||
|
||||
|
Reference in New Issue
Block a user