summaryrefslogtreecommitdiff
path: root/src/loadmechanism.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-02-25 17:50:57 +0100
committerTannin <devnull@localhost>2015-02-25 17:50:57 +0100
commit1579e4dcb088be971c5d780062c5d7449536f23c (patch)
tree29358a7466a9c70ebe4b4bf0b36045f33de51942 /src/loadmechanism.cpp
parent671d96383b2668ef773a49ba943328ddf0c98420 (diff)
- bugfix: detection of support for direct loading load mechanism was broken
- proxy dll load mechanism disabled since it seems to have been bugged for ages and nobody noticed so it appears to be unneeded
Diffstat (limited to 'src/loadmechanism.cpp')
-rw-r--r--src/loadmechanism.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/loadmechanism.cpp b/src/loadmechanism.cpp
index 913d018c..4d06bea9 100644
--- a/src/loadmechanism.cpp
+++ b/src/loadmechanism.cpp
@@ -65,7 +65,7 @@ void LoadMechanism::removeHintFile(QDir &targetDirectory)
bool LoadMechanism::isDirectLoadingSupported()
{
IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>();
- if (game->gameName().compare("oblivion", Qt::CaseInsensitive)) {
+ if (game->gameName().compare("oblivion", Qt::CaseInsensitive) == 0) {
// oblivion can be loaded directly if it's not the steam variant
return !game->gameDirectory().exists("steam_api.dll");
} else {
@@ -87,8 +87,13 @@ bool LoadMechanism::isScriptExtenderSupported()
bool LoadMechanism::isProxyDLLSupported()
{
- IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>();
- return game->gameDirectory().exists(QString::fromStdWString(AppConfig::proxyDLLTarget()));
+ // using steam_api.dll as the proxy is way too game specific as many games will have different
+ // versions of that game.
+ // plus: the proxy dll hasn't been working for at least the whole 1.12.x versions of MO and
+ // noone reported it so why maintain an unused feature?
+ return false;
+/* IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>();
+ return game->gameDirectory().exists(QString::fromStdWString(AppConfig::proxyDLLTarget()));*/
}