diff options
| author | Tannin <sherb@gmx.net> | 2015-11-19 19:09:34 +0100 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2015-11-19 19:09:34 +0100 |
| commit | 4ff751fb7e592376de5faab44ab7dd6fe70dbdd0 (patch) | |
| tree | 937948ba4796cfe63612034b6fa41e288a7c49cc /src/main.cpp | |
| parent | d8d81ee06f62c7636ac79d5c162db3e4e39f79a1 (diff) | |
some fixes/disabled code required since hook.dll is gone
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main.cpp b/src/main.cpp index 773bfc16..07d6fa19 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -131,19 +131,6 @@ bool bootstrap() createAndMakeWritable(AppConfig::overwritePath());
createAndMakeWritable(AppConfig::logPath());
- // verify the hook-dll exists
- QString dllName = qApp->applicationDirPath() + "/" + ToQString(AppConfig::hookDLLName());
-
- if (::GetModuleHandleW(ToWString(dllName).c_str()) != nullptr) {
- throw std::runtime_error("hook.dll already loaded! You can't start Mod Organizer from within itself (not even indirectly)");
- }
-
- HMODULE dllMod = ::LoadLibraryW(ToWString(dllName).c_str());
- if (dllMod == nullptr) {
- throw windows_error("hook.dll is missing or invalid");
- }
- ::FreeLibrary(dllMod);
-
return true;
}
@@ -516,7 +503,6 @@ int main(int argc, char *argv[]) }
game->setGameVariant(settings.value("game_edition").toString());
-
#pragma message("edition isn't used?")
qDebug("managing game at %s", qPrintable(QDir::toNativeSeparators(gamePath)));
|
