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

@ -472,6 +472,13 @@
Return true if the engine was executed with -v (verbose stdout).
</description>
</method>
<method name="is_userfs_persistent" qualifiers="const">
<return type="bool">
</return>
<description>
If [code]true[/code], the [code]user://[/code] file system is persistent, so that its state is the same after a player quits and starts the game again. Relevant to the HTML5 platform, where this persistence may be unavailable.
</description>
</method>
<method name="is_vsync_enabled" qualifiers="const">
<return type="bool">
</return>