Implement cardinal specific async dialogs in voxglitch
Closes #183 Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
15903d585f
commit
572e26c7da
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
|
||||
* Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
|
@ -53,6 +53,19 @@
|
|||
#include <functional>
|
||||
#define USING_CARDINAL_NOT_RACK
|
||||
|
||||
// OS separator macros
|
||||
#ifdef ARCH_WIN
|
||||
# define CARDINAL_OS_SEP '\\'
|
||||
# define CARDINAL_OS_SEP_STR "\\"
|
||||
# define CARDINAL_OS_SPLIT ';'
|
||||
# define CARDINAL_OS_SPLIT_STR ";"
|
||||
#else
|
||||
# define CARDINAL_OS_SEP '/'
|
||||
# define CARDINAL_OS_SEP_STR "/"
|
||||
# define CARDINAL_OS_SPLIT ':'
|
||||
# define CARDINAL_OS_SPLIT_STR ":"
|
||||
#endif
|
||||
|
||||
// opens a file browser, startDir and title can be null
|
||||
// action is always triggered on close (path can be null), must be freed if not null
|
||||
void async_dialog_filebrowser(bool saving, const char* startDir, const char* title,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 8d28da2a6083eb6af4b8d559e001fc9afbe2d41f
|
||||
Subproject commit 51a01f2d14988a41060f25ba203b38e6f6767605
|
|
@ -1 +1 @@
|
|||
Subproject commit 0b905ffef8c108a135b46b6f516d9dcf7f77c6cd
|
||||
Subproject commit f430c1dd2a94e0dff00141371467f372613f2116
|
Loading…
Reference in New Issue