25 #ifndef ENGINES_NWN_VERSION_H 26 #define ENGINES_NWN_VERSION_H 96 #endif // ENGINES_NWN_VERSION_H bool detectWindows(const Common::UString &directory)
static const uint16 kOptimumVersionMinor
uint16 getVersionBuild() const
Return the build number.
bool isTooNew() const
Is this version newer than the optimum?
uint64 getVersion() const
Return the combined version.
A class holding an UTF-8 string.
bool isTooOld() const
Is this version older than the optimum?
uint16 getVersionMinor() const
Return the minor version.
bool detect(const Common::UString &directory)
Try to detect the version of the NWN installation in this directory.
uint16 _versionMajor
v1.69.8109 -> 1
static uint64 getOptimumVersion()
Return the optimum combined version.
static const uint16 kOptimumVersionMajor
uint16 _versionMinor
v1.69.8109 -> 69
static const uint16 kOptimumVersionBuild
byte * readFile(const Common::UString &directory, const Common::UString &file, size_t &size)
Common::UString getVersionString() const
Common::UString getPlatformName() const
static uint16 getOptimumVersionMajor()
Return the optimum major version.
static Common::UString getOptimumVersionString()
uint16 _versionBuild
v1.69.8109 -> 8109
Version(Aurora::Platform platform)
Low-level type definitions to handle fixed width types portably.
static uint16 getOptimumVersionMinor()
Return the optimum minor version.
Aurora::Platform getPlatform() const
Basic type definitions to handle files used in BioWare's Aurora engine.
bool detectMacOSX(const Common::UString &directory)
uint64 _version
The combined version number.
static uint16 getOptimumVersionBuild()
Return the optimum build number.
Aurora::Platform _platform
bool hasVersion() const
Did we detect a version?
uint16 getVersionMajor() const
Return the major version.
bool detectLinux(const Common::UString &directory)