Add function pointer mode to SlXvFeatureTest

This commit is contained in:
Jonathan G Rennison
2018-01-12 01:13:49 +00:00
parent 19e62d089f
commit 15fea054fb
2 changed files with 8 additions and 0 deletions

View File

@@ -60,6 +60,8 @@ bool SlXvFeatureTest::IsFeaturePresent(uint16 savegame_version, uint16 savegame_
{
bool savegame_version_ok = savegame_version >= savegame_version_from && savegame_version <= savegame_version_to;
if (this->functor) return (*this->functor)(savegame_version, savegame_version_ok);
if (this->feature == XSLFI_NULL) return savegame_version_ok;
bool feature_ok = SlXvIsFeaturePresent(this->feature, this->min_version, this->max_version);