Example #1
0
        public void WriteFile(string fileName, byte[] fileContents)
        {
            IntPtr num = Marshal.AllocHGlobal(fileContents.Length);

            Marshal.Copy(fileContents, 0, num, fileContents.Length);
            RemoteStorage.SteamUnityAPI_SteamRemoteStorage_WriteFile(this._remoteStorage, fileName, num, fileContents.Length);
            Marshal.FreeHGlobal(num);
        }
Example #2
0
 internal RemoteStorage()
 {
     this._remoteStorage = RemoteStorage.SteamUnityAPI_SteamRemoteStorage();
 }
Example #3
0
 public void WriteFile(string fileName, string fileContents)
 {
     RemoteStorage.SteamUnityAPI_SteamRemoteStorage_WriteFile(this._remoteStorage, fileName, Marshal.StringToHGlobalAnsi(fileContents), fileContents.Length);
 }
Example #4
0
 public FileEnumator(RemoteStorage remoteStorage)
 {
     this._remoteStorage = remoteStorage;
     this._index         = -1;
 }
Example #5
0
 public bool FilePersisted(string fileName)
 {
     return(RemoteStorage.SteamUnityAPI_SteamRemoteStorage_FilePersisted(this._remoteStorage, fileName));
 }
Example #6
0
 public void DeleteFile(string fileName)
 {
     RemoteStorage.SteamUnityAPI_SteamRemoteStorage_DeleteFile(this._remoteStorage, fileName);
 }
Example #7
0
 public void ForgetFile(string fileName)
 {
     RemoteStorage.SteamUnityAPI_SteamRemoteStorage_ForgetFile(this._remoteStorage, fileName);
 }
Example #8
0
 public int GetFileSize(string fileName)
 {
     return(RemoteStorage.SteamUnityAPI_SteamRemoteStorage_GetFileSize(this._remoteStorage, fileName));
 }