Route dialog work directory picker through platform services
This commit is contained in:
@@ -432,6 +432,25 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
[[nodiscard]] bool supports_working_directory_picker() override
|
||||
{
|
||||
#if defined(__OSX__)
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
[[nodiscard]] std::string format_working_directory_path(std::string_view path) override
|
||||
{
|
||||
#if defined(__OSX__)
|
||||
char path_buffer[4096] = {};
|
||||
if (realpath(std::string(path).c_str(), path_buffer))
|
||||
return path_buffer;
|
||||
#endif
|
||||
return std::string(path);
|
||||
}
|
||||
|
||||
[[nodiscard]] bool uses_prepared_file_writes() override
|
||||
{
|
||||
#if __IOS__ || __WEB__
|
||||
|
||||
Reference in New Issue
Block a user