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);
        }