![]() In this case, you need to implement the IStorage interface in your game code. Such files will also be synchronized automatically with the cloud, like mentioned in the previous section. You can also share the files created this way with other GOG users. It provides the abstraction layer over the file system (methods for reading/writing/deleting files). If your game requires more complex managing of local and remote files or you don’t want to interact with the local file system directly, you can use the IStorage interface from the GOG GALAXY SDK. IStorage Interface from the GOG GALAXY SDK ¶ Unfortunately, sometimes this feature can’t be implemented by us and when this happens, you have to use the alternative method to enable cloud saves in your game. When automatic cloud saves are enabled, the GOG GALAXY client will synchronize files in a specified directory on the user’s local machine with the cloud every time the game is launched or closed. This is the easiest way of implementing Cloud Saves without changing the source code of a game and we are integrating such Cloud Saves internally, so there is no need for you to implement any extra features in your code! Where possible, cloud saves support will be added during the final stages of our QA process. We provide automatic saves syncing in the GOG GALAXY client. ![]() The IStorage interface from the GOG GALAXY SDK.Automatic saves syncing through the GOG GALAXY client.Using GOG GALAXY features, you have two options to implement synchronization of user’s save files with the Cloud: Lobby Management In Game: Examples of Implementation Lobby Management in Main Menu: Examples of Implementation Lobby Browsing: Examples of Implementation Lobby Creation: Examples of Implementation Stats and Achievements: Example of Implementation Importing Achievements Using the Steam VDF File User Authentication Based On Other ServicesĪuthorizing GOG GALAXY Users in Third-Party Services IStorage Interface from the GOG GALAXY SDK Preparing Depots for macOS Application Bundle Our Recommendations for macOS Game Structure
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |