Example #1
0
        /// <summary>Checks for the existence of a file.</summary>
        public void GetFileExists(string relativePath, GetFileExistsCallback callback)
        {
            Debug.Assert(!string.IsNullOrEmpty(relativePath));
            Debug.Assert(callback != null);

            string path       = IOUtilities.CombinePath(this.userDir, relativePath);
            bool   fileExists = Steamworks.SteamRemoteStorage.FileExists(path);

            callback.Invoke(relativePath, fileExists);
        }
Example #2
0
        /// <summary>Checks for the existence of a file.</summary>
        public void GetFileExists(string relativePath, GetFileExistsCallback callback)
        {
            Debug.Assert(!string.IsNullOrEmpty(relativePath));
            Debug.Assert(callback != null);

            string path      = IOUtilities.CombinePath(this.userDir, relativePath);
            bool   doesExist = this.GetFileExists(path);

            callback.Invoke(relativePath, doesExist);
        }
Example #3
0
 /// <summary>Checks for the existence of a file.</summary>
 public static void GetFileExists(string pathRelative, GetFileExistsCallback callback)
 {
     UserDataStorage.PLATFORM_IO.GetFileExists(pathRelative, callback);
 }
Example #4
0
 /// <summary>Checks for the existence of a file.</summary>
 public static void GetFileExists(string path, GetFileExistsCallback onComplete)
 {
     DataStorage.PLATFORM_IO.GetFileExists(path, onComplete);
 }