Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:all-features:filesystem [2020/06/09 12:58]
dkarakay [Asynchronous execution]
gdevelop5:all-features:filesystem [2020/12/26 13:56] (current)
Line 6: Line 6:
 GDevelop offers two different ways to save data permanently. The storage extension and the file system extension. GDevelop offers two different ways to save data permanently. The storage extension and the file system extension.
  
-Since GDevelop is built upon web technology, at the time of writing, every game is basically a website that either runs directly in a browser (Web export) or inside a stripped down browser container "Electron" (Windows, MacOS, Linux) / "Apache Cordova" (Android, iOS).+Since GDevelop is built upon web technology, at the time of writing, every game is basically a website that either runs directly in a browser (Web export) or inside a stripped-down browser container "Electron" (Windows, macOS, Linux) / "Apache Cordova" (Android, iOS).
  
-All these platforms offer web storage, integrated into the browser component of their runtimes where data can be saved in a dictionary like key/value style.+All these platforms offer web storage, integrated into the browser component of their runtimes where data can be saved in a dictionary-like key/value style.
  
-For security reasons, web browsers don't let websites write any data to the file system of the computer they are executed on. Only games exported for Windows, macOS or Linux can use this functionality.+For security reasons, web browsers don't let websites write any data to the file system of the computer they are executed on. Only games exported for Windows, macOSor Linux can use this functionality.
  
 ### Storage ### Storage
Line 54: Line 54:
  
 It is up to the game developer to decide which variant of the action is suitable for the individual situation. It is up to the game developer to decide which variant of the action is suitable for the individual situation.
- 
---- 
  
 --- ---
Line 191: Line 189:
  
 ## Expressions ## Expressions
-These expressions return the path to special folders on the users operating system. If you use these expressions for loading and saving files it will be guaranteed to work on all supported operating systems. (Currently Windows, Linux and MacOS+These expressions return the path to special folders on the usersoperating system. If you use these expressions for loading and saving files it will be guaranteed to work on all supported operating systems. (Currently Windows, Linuxand macOS
 === Desktop folder === === Desktop folder ===
 This expression returns the operating system independent path to the //Desktop// folder of the user that runs your game. This expression returns the operating system independent path to the //Desktop// folder of the user that runs your game.
Line 204: Line 202:
 === Temp folder === === Temp folder ===
 This expression returns the operating system independent path to the //Temp// folder of the user that runs your game. This expression returns the operating system independent path to the //Temp// folder of the user that runs your game.
-This folder is used for temporary files that your operating system can delete any time.+This folder is used for temporary files that your operating system can delete at any time.
 === Userdata folder === === Userdata folder ===
 This expression returns the operating system independent path to the //UserData// folder of the user that runs your game. This expression returns the operating system independent path to the //UserData// folder of the user that runs your game.
 This folder is used for storing application settings. This folder is used for storing application settings.
 === Path delimiter === === Path delimiter ===
-This expression returns the operating system independent path delimiter character. ("\" on Windows and "/" on Linux and MacOS).+This expression returns the operating system independent path delimiter character. ("\" on Windows and "/" on Linux and macOS).
 Use this expression to build cross-platform file paths that can be accessed on all supported operating systems. Use this expression to build cross-platform file paths that can be accessed on all supported operating systems.
  
 ## Example ## Example
-In order to save a screen shot to the //Pictures// directory you could write:+In order to save a screenshot to the //Pictures// directory you could write:
  
 ``` ```
Line 219: Line 217:
 ``` ```
  
-This will work on Windows, Linux and MacOS.+This will work on Windows, Linuxand macOS.