From 9c31cfa915f71adee8579aa97c12b64903ec9446 Mon Sep 17 00:00:00 2001 From: Tannin Date: Fri, 30 Aug 2013 20:59:12 +0200 Subject: - the download manager now registers download speed. Right now this is only used to display an average speed on the settings menu - added a python27.dll compiled with vc100. This can now be bundled without introducing more dependencies - bugfix: extracting now stops after an error - bugfix: the way hook.dll caused CREATE_ALWAYS/CREATE_NEW to always write into overwrite could lead to the file being created when the call should have failed (because the file existed and was protected) - bugfix: GetPrivateProfileString does NOT properly report files as missing. This means that the ini-query optimization could optimize away requests that should work - bugfix: fomod installer couldn't display images because they were unpacked to the wrong temporary location - bugfix: When disabling local saves and choosing to delete the saves nothing happened - bugfix: the python plugin couldn't find the pyqt libraries --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 5be0f374..b6e2a7e9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -283,15 +283,15 @@ void registerMetaTypes() int main(int argc, char *argv[]) { MOApplication application(argc, argv); - qApp->addLibraryPath(application.applicationDirPath() + "/dlls"); + + application.addLibraryPath(application.applicationDirPath() + "/dlls"); SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); LogBuffer::init(20, QtDebugMsg, application.applicationDirPath() + "/logs/mo_interface.log"); - qDebug("Working directory: %s", qPrintable(QDir::currentPath())); - qDebug("MO at: %s", qPrintable(application.applicationDirPath())); - qDebug("user name: %s", getenv("USERNAME")); + qDebug("Working directory: %s", qPrintable(QDir::toNativeSeparators(QDir::currentPath()))); + qDebug("MO at: %s", qPrintable(QDir::toNativeSeparators(application.applicationDirPath()))); QPixmap pixmap(":/MO/gui/splash"); QSplashScreen splash(pixmap); splash.show(); @@ -404,7 +404,7 @@ int main(int argc, char *argv[]) settings.setValue("gamePath", gamePath.toUtf8().constData()); } - qDebug("managing game at %s", qPrintable(gamePath)); + qDebug("managing game at %s", qPrintable(QDir::toNativeSeparators(gamePath))); ExecutablesList executablesList; -- cgit v1.3.1