diff options
| -rw-r--r-- | engines/sci/sci.cpp | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index f6bc48f1fa..f5e327c619 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -164,8 +164,14 @@ SciEngine::SciEngine(OSystem *syst, const ADGameDescription *desc, SciGameId gam  	// Add the patches directory, except for KQ6CD; The patches folder in some versions of KQ6CD  	// (e.g. KQ Collection 1997) is for the demo of Phantasmagoria, included in the disk -	if (_gameId != GID_KQ6) -		SearchMan.addSubDirectoryMatching(gameDataDir, "patches");	// resource patches +	if (_gameId != GID_KQ6) { +		// Patch files in the root directory of Phantasmagoria 2 are higher +		// priority than patch files in the patches directory (the SSCI +		// installer copies these patches to HDD and gives the HDD directory +		// top priority) +		const int priority = _gameId == GID_PHANTASMAGORIA2 ? -1 : 0; +		SearchMan.addSubDirectoryMatching(gameDataDir, "patches", priority);	// resource patches +	}  	// Some releases (e.g. Pointsoft Torin) use a different patch directory name  	SearchMan.addSubDirectoryMatching(gameDataDir, "patch");	// resource patches  | 
