70 if (systemDir.
empty())
79 return systemFiles.
containsGlob(
".*/witcher.(exe|ini)",
true);
A class holding an UTF-8 string.
bool probe(const Common::UString &directory, const Common::FileList &rootFiles) const
Check for the game in that directory, containing these files.
A probe that checks if an engine can handle game data found in a specific directory and creates an in...
Aurora::GameID getGameID() const
Get the GameID that the probe is able to detect.
Probing for an installation of The Witcher.
bool empty() const
Is the string empty?
Engines::Engine * createEngine() const
Create the respective engine for the GameID.
static const Common::UString kGameName
const Common::UString & getGameName() const
Return a string of the full game name.
bool probe(Common::SeekableReadStream &stream) const
Check for the game in that file.
The base class for an engine within BioWare's Aurora family.
A probe able to detect one specific game.
void createEngineProbes(std::list< const ::Engines::EngineProbe *> &probes)
bool addDirectory(const UString &directory, int recurseDepth=0)
Add a directory to the list.
Engine class handling The Witcher.
Aurora::Platform getPlatform() const
Get the Platform that the probe is able to detect.
bool containsGlob(const UString &glob, bool caseInsensitive) const
Does the list contain at least one file matching the given regex?
Interface for a seekable & readable data stream.
Utility class for manipulating file paths.
static UString findSubDirectory(const UString &directory, const UString &subDirectory, bool caseInsensitive=false)
Find a directory's subdirectory.