fix iOS save picker
This commit is contained in:
@@ -90,6 +90,7 @@ public:
|
||||
std::string data_path{ "." };
|
||||
std::string work_path{ "." };
|
||||
std::string rec_path{ "." };
|
||||
std::string tmp_path{ "." };
|
||||
std::thread rec_thread;
|
||||
bool rec_running = false;
|
||||
int rec_count = 0;
|
||||
@@ -174,8 +175,8 @@ public:
|
||||
void pick_image(std::function<void(std::string path)> callback);
|
||||
void pick_file(std::vector<std::string> types, std::function<void(std::string path)> callback);
|
||||
#if __IOS__ || __WEB__
|
||||
void pick_file_save(const std::string& type, std::function<void(std::string path)> writer,
|
||||
std::function<void(bool saved)> callback);
|
||||
void pick_file_save(const std::string& type, const std::string& default_name,
|
||||
std::function<void(std::string path)> writer, std::function<void(const std::string& path, bool saved)> callback);
|
||||
#else
|
||||
void pick_file_save(std::vector<std::string> types, std::function<void(std::string path)> callback);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user