From 4ff751fb7e592376de5faab44ab7dd6fe70dbdd0 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 19 Nov 2015 19:09:34 +0100 Subject: some fixes/disabled code required since hook.dll is gone --- src/main.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/main.cpp') 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))); -- cgit v1.3.1