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