mirror of https://github.com/WerWolv/ImHex.git
build: Updated nativefiledialog library
This commit is contained in:
parent
2e3bb8e555
commit
499b68b7ad
|
@ -1 +1 @@
|
|||
Subproject commit 28ade5a5cc5d17cea8fe4034572cac8fd54eb53f
|
||||
Subproject commit 33115928184cc3cc1b945a0f94bbc574d137224c
|
|
@ -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<char8_t*>(outPath);
|
||||
#endif
|
||||
|
||||
callback(path);
|
||||
callback(reinterpret_cast<char8_t*>(outPath));
|
||||
NFD::FreePath(outPath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue