diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-11-28 23:12:29 +0000 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-11-28 23:12:29 +0000 |
| commit | d03e4f45efa89f135ec7d42f55f24bc816f71e0a (patch) | |
| tree | 1f11a42ca2711379c0739d430976fd8502797240 /src/loadmechanism.cpp | |
| parent | 9e2bcffc32157b99a2d7364b869a4423ba827a32 (diff) | |
Abstract away the xxse_loader manipulation and make use of the 'ScriptExtender' feature instead
A note: This makes loadmechanism.cpp require xxse_loader.exe to exist, not the dll as other places get the version number from the exe.
Diffstat (limited to 'src/loadmechanism.cpp')
| -rw-r--r-- | src/loadmechanism.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/loadmechanism.cpp b/src/loadmechanism.cpp index 521473b0..99fce3ba 100644 --- a/src/loadmechanism.cpp +++ b/src/loadmechanism.cpp @@ -81,9 +81,7 @@ bool LoadMechanism::isScriptExtenderSupported() ScriptExtender *extender = game->feature<ScriptExtender>();
// test if there even is an extender for the managed game and if so whether it's installed
- return (extender != nullptr)
- && (game->gameDirectory().exists(extender->name() + "_loader.exe")
- || game->gameDirectory().exists(extender->name() + "_steam_loader.dll"));
+ return extender != nullptr && extender->isInstalled();
}
bool LoadMechanism::isProxyDLLSupported()
|
