summaryrefslogtreecommitdiffstats
path: root/platform/iphone/os_iphone.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-05-26 07:56:22 +0200
committerGitHub <noreply@github.com>2017-05-26 07:56:22 +0200
commitd197cd4705b51c792a65df9f4dc87466375ed21d (patch)
treed112c0cae0077939f3eab973f3179bcff3b697b8 /platform/iphone/os_iphone.cpp
parentdbba433b69985c1629aeb9cbb0ddf85efdada7e0 (diff)
parent50f152575d3a5206ce97db935b551ca7729242f4 (diff)
downloadredot-engine-d197cd4705b51c792a65df9f4dc87466375ed21d.tar.gz
Merge pull request #8912 from RandomShaper/ios-alert
Implement OS.alert() for iOS
Diffstat (limited to 'platform/iphone/os_iphone.cpp')
-rw-r--r--platform/iphone/os_iphone.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp
index 7023021c66..0d7913446e 100644
--- a/platform/iphone/os_iphone.cpp
+++ b/platform/iphone/os_iphone.cpp
@@ -403,6 +403,13 @@ int OSIPhone::get_mouse_button_state() const {
void OSIPhone::set_window_title(const String &p_title){};
+void OSIPhone::alert(const String &p_alert, const String &p_title) {
+
+ const CharString utf8_alert = p_alert.utf8();
+ const CharString utf8_title = p_title.utf8();
+ iOS::alert(utf8_alert.get_data(), utf8_title.get_data());
+}
+
void OSIPhone::set_video_mode(const VideoMode &p_video_mode, int p_screen) {
video_mode = p_video_mode;