add import dialog on windows
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#ifdef __ANDROID__
|
||||
void displayKeyboard(android_app* mApplication, bool pShow);
|
||||
#elif _WIN32
|
||||
std::string win32_open_file();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -51,6 +53,10 @@ void App::pick_image(std::function<void(std::string path)> callback)
|
||||
callback(path);
|
||||
#elif __ANDROID__
|
||||
//displayKeyboard(and_app, false);
|
||||
#elif _WIN32
|
||||
std::string path = win32_open_file();
|
||||
if (!path.empty())
|
||||
callback(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user