steam_is_cloud_enabled_for_account

Check to see if Steam Cloud storage is enabled for the current user.

Syntax:

steam_is_cloud_enabled_for_account();


Returns: Boolean


Description

With this function you can check to make sure that the Steam Cloud service is enabled by the user in their Steam Client settings. It will return true if it is and false otherwise. Note that this does not automatically mean that you can store data to the Cloud, as it will also have to have been enabled for your game (you can check this using the function steam_is_cloud_enabled_for_app). If the Steam Cloud is enabled for your game, but the user has it switched off locally, you can still use the Cloud functions to store and retrieve data from a local copy of all files, it will just not upload them to the cloud on the game end, nor synchronise on the game start.


Example:

if steam_is_cloud_enabled_for_account
   {
   steam_file_share("Save.txt");
   }

The above code checks to see if the user has the Steam Cloud enabled and if it returns true, it will then synchronise the given file.


Back: Steam API
Next: steam_get_quota_total
© Copyright YoYo Games Ltd. 2018 All Rights Reserved