From 5c968a124280a60e64298809e3e78e5d3783d59c Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 13 Jul 2013 22:11:30 +0200 Subject: - added the ability to connect to the internet through a proxy - integrated fomod installer now supports the or-operator for page conditions - integrated fomod installer now caches condition results to speed up tests --- src/main.cpp | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 583992d1..b92bb538 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,7 +62,6 @@ along with Mod Organizer. If not, see . #include #include #include -#include #include #include #include @@ -181,7 +180,7 @@ void cleanupDir() "QtXml4.dll", "QtWebKit4.dll", "qjpeg4.dll", - "dlls/phonon4.dll", +/* "dlls/phonon4.dll", "dlls/QtCore4.dll", "dlls/QtGui4.dll", "dlls/QtNetwork4.dll", @@ -190,7 +189,7 @@ void cleanupDir() "dlls/QtWebKit4.dll", "dlls/QtDeclarative4.dll", "dlls/QtScript4.dll", - "dlls/QtSql4.dll" + "dlls/QtSql4.dll"*/ }; static const int NUM_FILES = sizeof(fileNames) / sizeof(QString); @@ -274,21 +273,6 @@ LONG WINAPI MyUnhandledExceptionFilter(struct _EXCEPTION_POINTERS *exceptionPtrs } -void setupNetworkProxy() -{ - QNetworkProxyQuery query(QUrl("http://www.google.com"), QNetworkProxyQuery::UrlRequest); - query.setProtocolTag("http"); - - QList proxies = QNetworkProxyFactory::systemProxyForQuery(query); - if ((proxies.size() > 0) && (proxies.at(0).type() != QNetworkProxy::NoProxy)) { - qDebug("Using proxy: %s", qPrintable(proxies.at(0).hostName())); - QNetworkProxy::setApplicationProxy(proxies[0]); - } else { - qDebug("Not using proxy"); - } -} - - void registerMetaTypes() { registerExecutable(); @@ -297,11 +281,8 @@ void registerMetaTypes() int main(int argc, char *argv[]) { MOApplication application(argc, argv); - qApp->addLibraryPath(application.applicationDirPath() + "/dlls"); - setupNetworkProxy(); - SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); LogBuffer::init(20, QtDebugMsg, application.applicationDirPath() + "/logs/mo_interface.log"); -- cgit v1.3.1