Exemplo n.º 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);
        }
Exemplo n.º 2
0
 internal RemoteStorage()
 {
     this._remoteStorage = RemoteStorage.SteamUnityAPI_SteamRemoteStorage();
 }
Exemplo n.º 3
0
 public void WriteFile(string fileName, string fileContents)
 {
     RemoteStorage.SteamUnityAPI_SteamRemoteStorage_WriteFile(this._remoteStorage, fileName, Marshal.StringToHGlobalAnsi(fileContents), fileContents.Length);
 }
Exemplo n.º 4
0
 public FileEnumator(RemoteStorage remoteStorage)
 {
     this._remoteStorage = remoteStorage;
     this._index         = -1;
 }
Exemplo n.º 5
0
 public bool FilePersisted(string fileName)
 {
     return(RemoteStorage.SteamUnityAPI_SteamRemoteStorage_FilePersisted(this._remoteStorage, fileName));
 }
Exemplo n.º 6
0
 public void DeleteFile(string fileName)
 {
     RemoteStorage.SteamUnityAPI_SteamRemoteStorage_DeleteFile(this._remoteStorage, fileName);
 }
Exemplo n.º 7
0
 public void ForgetFile(string fileName)
 {
     RemoteStorage.SteamUnityAPI_SteamRemoteStorage_ForgetFile(this._remoteStorage, fileName);
 }
Exemplo n.º 8
0
 public int GetFileSize(string fileName)
 {
     return(RemoteStorage.SteamUnityAPI_SteamRemoteStorage_GetFileSize(this._remoteStorage, fileName));
 }