diff --git a/Engines/Wine/QuickScript/SteamScript/script.js b/Engines/Wine/QuickScript/SteamScript/script.js index fc74cf93d5..1802da0329 100644 --- a/Engines/Wine/QuickScript/SteamScript/script.js +++ b/Engines/Wine/QuickScript/SteamScript/script.js @@ -36,7 +36,11 @@ SteamScript.prototype.gameOverlay = function(gameOverlay) { }; SteamScript.prototype.manifest = function(wine) { - return wine.prefixDirectory + "/drive_c/" + wine.programFiles() + "/Steam/steamapps/appmanifest_" + this._appId + ".acf"; + if (!this._manifest) { + // cache manifest path (will not change during the installation) + this._manifest = wine.prefixDirectory + "/drive_c/" + wine.programFiles() + "/Steam/steamapps/appmanifest_" + this._appId + ".acf"; + } + return this._manifest; }; SteamScript.prototype.downloadStarted = function(wine) {