From d03e4f45efa89f135ec7d42f55f24bc816f71e0a Mon Sep 17 00:00:00 2001 From: Thomas Tanner Date: Sat, 28 Nov 2015 23:12:29 +0000 Subject: 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. --- src/loadmechanism.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/loadmechanism.cpp') 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(); // 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() -- cgit v1.3.1