Supported Platforms
- PC / Mac / Linux
- iOS, tvOS
- Android
- WebGL
- Windows Phone 8
- Windows Store
- Windows Universal Apps
- Blackberry 10
Consoles?
Easy Save does not officially support Playstation, Xbox or Nintendo as they require prohibitively expensive middleware licenses to do so.
However, some people have had luck integrating the storage APIs on these platforms with Easy Save by writing data to memory, converting it to a byte array, and providing this to the platform’s storage API.
For example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
ES2Settings settings = new ES2Settings(); settings.saveLocation = ES2Settings.SaveLocation.Memory; using( ES2Writer writer = ES2Writer.Create(settings) ) { writer.Write(123, "myTag"); writer.Write("ABC", "myTag2"); writer.Save(); byte[] bytes = writer.stream.ReadAllBytes(); // Add your own platform-specific code to store the byte array here. SaveToStorageAPI(bytes); } // Add your own code here to load the byte from the storage API. var bytes = LoadFromStorageAPI(); using( ES2Reader reader = ES2Reader.Create(bytes, settings) ) { int myInt = reader.Read<int>("myTag"); string myString = reader.Read<string>("myTag2"); } |
Note that this code is provided without warranty, and we cannot provide further support for it.