|
xoreos
0.0.5
|
#include <version.h>
Public Member Functions | |
| Version (Aurora::Platform platform) | |
| ~Version () | |
| bool | detect (const Common::UString &directory) |
| Try to detect the version of the KotOR installation in this directory. More... | |
| bool | hasVersion () const |
| Did we detect a version? More... | |
| Aurora::Platform | getPlatform () const |
| Common::UString | getPlatformName () const |
| uint16 | getVersionMajor () const |
| Return the major version. More... | |
| uint16 | getVersionMinor () const |
| Return the minor version. More... | |
| uint32 | getVersionBuild () const |
| Return the build number. More... | |
| Common::UString | getVersionString () const |
| bool | isTooOld () const |
| Is this version older than the optimum? More... | |
| bool | isTooNew () const |
| Is this version newer than the optimum? More... | |
| uint16 | getOptimumVersionMajor () const |
| Return the optimum major version. More... | |
| uint16 | getOptimumVersionMinor () const |
| Return the optimum minor version. More... | |
| Common::UString | getOptimumVersionString () |
Private Member Functions | |
| bool | detectWindows (const Common::UString &directory) |
| bool | detectMacOSX (const Common::UString &directory) |
| bool | detectXbox (const Common::UString &directory) |
| byte * | readFile (const Common::UString &directory, const Common::UString &file, size_t &size) |
| byte * | readFile (const Common::UString &path, size_t &size) |
Private Attributes | |
| Aurora::Platform | _platform |
| uint16 | _versionMajor |
| v1.03.514078 -> 1 More... | |
| uint16 | _versionMinor |
| v1.03.514078 -> 3 More... | |
| uint32 | _versionBuild |
| v1.03.514078 -> 514078 More... | |
| Engines::KotOR::Version::Version | ( | Aurora::Platform | platform | ) |
Definition at line 47 of file version.cpp.
| Engines::KotOR::Version::~Version | ( | ) |
Definition at line 52 of file version.cpp.
| bool Engines::KotOR::Version::detect | ( | const Common::UString & | directory | ) |
Try to detect the version of the KotOR installation in this directory.
Definition at line 133 of file version.cpp.
References _platform, _versionBuild, _versionMajor, _versionMinor, detectMacOSX(), detectWindows(), detectXbox(), Aurora::kPlatformMacOSX, Aurora::kPlatformWindows, and Aurora::kPlatformXbox.

|
private |
Definition at line 242 of file version.cpp.
References _versionBuild, _versionMajor, _versionMinor, Common::UString::empty(), Common::FilePath::findSubDirectory(), Common::ScopedPtrBase< T, Deallocator >::get(), readFile(), and Common::ScopedPtrBase< T, Deallocator >::reset().
Referenced by detect().


|
private |
Definition at line 153 of file version.cpp.
References _versionBuild, _versionMajor, _versionMinor, Common::ScopedPtrBase< T, Deallocator >::get(), kBuildWin, kVersionWin, and readFile().
Referenced by detect().


|
private |
Definition at line 316 of file version.cpp.
References _versionBuild, _versionMajor, _versionMinor, Common::ScopedPtrBase< T, Deallocator >::get(), and readFile().
Referenced by detect().


| uint16 Engines::KotOR::Version::getOptimumVersionMajor | ( | ) | const |
Return the optimum major version.
Definition at line 83 of file version.cpp.
References _platform, Aurora::kPlatformMacOSX, Aurora::kPlatformWindows, and Aurora::kPlatformXbox.
Referenced by getOptimumVersionString(), isTooNew(), and isTooOld().

| uint16 Engines::KotOR::Version::getOptimumVersionMinor | ( | ) | const |
Return the optimum minor version.
Definition at line 97 of file version.cpp.
References _platform, Aurora::kPlatformMacOSX, Aurora::kPlatformWindows, and Aurora::kPlatformXbox.
Referenced by getOptimumVersionString(), isTooNew(), and isTooOld().

| Common::UString Engines::KotOR::Version::getOptimumVersionString | ( | ) |
Definition at line 113 of file version.cpp.
References Common::UString::format(), getOptimumVersionMajor(), and getOptimumVersionMinor().

| Aurora::Platform Engines::KotOR::Version::getPlatform | ( | ) | const |
Definition at line 59 of file version.cpp.
References _platform.
Referenced by Engines::KotOR::MainMenu::MainMenu().

| Common::UString Engines::KotOR::Version::getPlatformName | ( | ) | const |
Definition at line 63 of file version.cpp.
References _platform, and Aurora::getPlatformDescription().

| uint32 Engines::KotOR::Version::getVersionBuild | ( | ) | const |
| uint16 Engines::KotOR::Version::getVersionMajor | ( | ) | const |
| uint16 Engines::KotOR::Version::getVersionMinor | ( | ) | const |
| Common::UString Engines::KotOR::Version::getVersionString | ( | ) | const |
Definition at line 79 of file version.cpp.
References _versionBuild, _versionMajor, _versionMinor, and Common::UString::format().
Referenced by Engines::KotOR::OptionsMenu::OptionsMenu().


| bool Engines::KotOR::Version::hasVersion | ( | ) | const |
Did we detect a version?
Definition at line 55 of file version.cpp.
References _versionBuild, _versionMajor, and _versionMinor.
Referenced by Engines::KotOR::OptionsMenu::OptionsMenu().

| bool Engines::KotOR::Version::isTooNew | ( | ) | const |
Is this version newer than the optimum?
Definition at line 127 of file version.cpp.
References _versionMajor, _versionMinor, getOptimumVersionMajor(), getOptimumVersionMinor(), and Engines::KotOR::makeCombinedVersion().

| bool Engines::KotOR::Version::isTooOld | ( | ) | const |
Is this version older than the optimum?
Definition at line 122 of file version.cpp.
References _versionMajor, _versionMinor, getOptimumVersionMajor(), getOptimumVersionMinor(), and Engines::KotOR::makeCombinedVersion().

|
private |
Definition at line 370 of file version.cpp.
References Common::FileList::addDirectory(), and Common::FileList::findFirst().
Referenced by detectMacOSX(), detectWindows(), and detectXbox().


|
private |
Definition at line 379 of file version.cpp.
References Common::UString::empty(), Common::ScopedPtrBase< T, Deallocator >::get(), Common::ReadFile::open(), Common::ReadFile::read(), Common::ScopedPtrBase< T, Deallocator >::release(), and Common::ReadFile::size().

|
private |
Definition at line 70 of file version.h.
Referenced by detect(), getOptimumVersionMajor(), getOptimumVersionMinor(), getPlatform(), and getPlatformName().
|
private |
v1.03.514078 -> 514078
Definition at line 74 of file version.h.
Referenced by detect(), detectMacOSX(), detectWindows(), detectXbox(), getVersionBuild(), getVersionString(), and hasVersion().
|
private |
v1.03.514078 -> 1
Definition at line 72 of file version.h.
Referenced by detect(), detectMacOSX(), detectWindows(), detectXbox(), getVersionMajor(), getVersionString(), hasVersion(), isTooNew(), and isTooOld().
|
private |
v1.03.514078 -> 3
Definition at line 73 of file version.h.
Referenced by detect(), detectMacOSX(), detectWindows(), detectXbox(), getVersionMinor(), getVersionString(), hasVersion(), isTooNew(), and isTooOld().
1.8.14