diff options
author | Leon Krause <lk@leonkrause.com> | 2017-10-02 16:09:24 +0200 |
---|---|---|
committer | Leon Krause <lk@leonkrause.com> | 2017-10-02 21:07:05 +0200 |
commit | 7b23665e728fe10cd0eedb54824aaeae4ae23758 (patch) | |
tree | 289ef1982791cba4c35cc0de331083170c0b18b4 /platform/javascript/os_javascript.h | |
parent | 66987d687879017affb787b4a3ffb1ef11880336 (diff) |
Add OS::is_userfs_persistent to check user:// persistence
Allows starting HTML5 export when IndexedDB is not available.
Diffstat (limited to 'platform/javascript/os_javascript.h')
-rw-r--r-- | platform/javascript/os_javascript.h | 5 |
1 files changed, 5 insertions, 0 deletions
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(); }; |