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