1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add OS::is_userfs_persistent to check user:// persistence

Allows starting HTML5 export when IndexedDB is not available.
This commit is contained in:
Leon Krause
2017-10-02 16:09:24 +02:00
parent 66987d6878
commit 7b23665e72
7 changed files with 45 additions and 14 deletions

View File

@@ -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();
};