From 79681fccdbdd2eb94bcccd5225bd1366c8aaf8a0 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 15 Sep 2021 14:14:42 +0200 Subject: [PATCH] feat: expose to local file --- vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h | 2 ++ vendor/DOtherSide/lib/src/DOtherSide.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h b/vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h index e7e4ac2135..f1c5002ed4 100644 --- a/vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h +++ b/vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h @@ -1009,6 +1009,8 @@ DOS_API void dos_statusosnotification_show_notification(DosStatusOSNotificationO const char* title, const char* message, const char* identifier); DOS_API void dos_statusosnotification_delete(DosStatusOSNotificationObject* vptr); +DOS_API char *dos_to_local_file(const char* filePath); + #ifdef __cplusplus } #endif diff --git a/vendor/DOtherSide/lib/src/DOtherSide.cpp b/vendor/DOtherSide/lib/src/DOtherSide.cpp index f86699d40a..0d72477036 100644 --- a/vendor/DOtherSide/lib/src/DOtherSide.cpp +++ b/vendor/DOtherSide/lib/src/DOtherSide.cpp @@ -1391,4 +1391,9 @@ void dos_statusosnotification_delete(DosStatusOSNotificationObject* vptr) auto qobject = static_cast(vptr); if(qobject) qobject->deleteLater(); +} + +char* dos_to_local_file(const char* filePath) +{ + return convert_to_cstring(QUrl(QString::fromUtf8(filePath)).toLocalFile()); } \ No newline at end of file