From 499b68b7adfbb3b679903d2159b30138172a51fa Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 16 Jul 2022 13:26:07 +0200 Subject: [PATCH] build: Updated nativefiledialog library --- lib/external/nativefiledialog | 2 +- lib/libimhex/source/helpers/fs.cpp | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/external/nativefiledialog b/lib/external/nativefiledialog index 28ade5a5c..331159281 160000 --- a/lib/external/nativefiledialog +++ b/lib/external/nativefiledialog @@ -1 +1 @@ -Subproject commit 28ade5a5cc5d17cea8fe4034572cac8fd54eb53f +Subproject commit 33115928184cc3cc1b945a0f94bbc574d137224c diff --git a/lib/libimhex/source/helpers/fs.cpp b/lib/libimhex/source/helpers/fs.cpp index a741f8c84..6fa817aa1 100644 --- a/lib/libimhex/source/helpers/fs.cpp +++ b/lib/libimhex/source/helpers/fs.cpp @@ -88,17 +88,7 @@ namespace hex::fs { } if (result == NFD_OKAY && outPath != nullptr) { - std::fs::path path; - #if defined(OS_LINUX) - // xdg-desktop-portal, which is the file picker backend used on Linux, returns all paths with URI encoding. - // This is a bit ugly and will most likely be fixed sometime in the future but until then, we'll just use - // curl to decode the URI string into a valid file path string - path = Net().decode(outPath); - #else - path = reinterpret_cast(outPath); - #endif - - callback(path); + callback(reinterpret_cast(outPath)); NFD::FreePath(outPath); }