From 572e26c7dac8a0bf2ab4c1cf888c25b6290a51e8 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 7 Mar 2022 16:23:37 +0000 Subject: [PATCH] Implement cardinal specific async dialogs in voxglitch Closes #183 Signed-off-by: falkTX --- include/common.hpp | 15 ++++++++++++++- plugins/Dintree | 2 +- plugins/voxglitch | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/common.hpp b/include/common.hpp index 8593494..6dd7470 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -1,6 +1,6 @@ /* * DISTRHO Cardinal Plugin - * Copyright (C) 2021 Filipe Coelho + * Copyright (C) 2021-2022 Filipe Coelho * * 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 #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, diff --git a/plugins/Dintree b/plugins/Dintree index 8d28da2..51a01f2 160000 --- a/plugins/Dintree +++ b/plugins/Dintree @@ -1 +1 @@ -Subproject commit 8d28da2a6083eb6af4b8d559e001fc9afbe2d41f +Subproject commit 51a01f2d14988a41060f25ba203b38e6f6767605 diff --git a/plugins/voxglitch b/plugins/voxglitch index 0b905ff..f430c1d 160000 --- a/plugins/voxglitch +++ b/plugins/voxglitch @@ -1 +1 @@ -Subproject commit 0b905ffef8c108a135b46b6f516d9dcf7f77c6cd +Subproject commit f430c1dd2a94e0dff00141371467f372613f2116