From 7b23665e728fe10cd0eedb54824aaeae4ae23758 Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Mon, 2 Oct 2017 16:09:24 +0200 Subject: Add OS::is_userfs_persistent to check user:// persistence Allows starting HTML5 export when IndexedDB is not available. --- platform/javascript/os_javascript.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'platform/javascript/os_javascript.h') diff --git a/platform/javascript/os_javascript.h b/platform/javascript/os_javascript.h index 4c6469cb58..ff89f96e6d 100644 --- a/platform/javascript/os_javascript.h +++ b/platform/javascript/os_javascript.h @@ -49,6 +49,7 @@ typedef String (*GetDataDirFunc)(); class OS_JavaScript : public OS_Unix { + bool idbfs_available; int64_t time_to_save_sync; int64_t last_sync_time; @@ -140,6 +141,8 @@ public: virtual bool can_draw() const; + virtual bool is_userfs_persistent() const; + virtual void set_cursor_shape(CursorShape p_shape); void main_loop_begin(); @@ -171,6 +174,8 @@ public: virtual bool _check_internal_feature_support(const String &p_feature); + void set_idbfs_available(bool p_idbfs_available); + OS_JavaScript(const char *p_execpath, GetDataDirFunc p_get_data_dir_func); ~OS_JavaScript(); }; -- cgit v1.2.3