diff options
| author | Tannin <sherb@gmx.net> | 2015-09-23 21:47:56 +0200 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2015-09-23 21:47:56 +0200 |
| commit | 8865f9d7bc6b88e6cde2e2ec53e2f7c0f41561a7 (patch) | |
| tree | cc17c65e380796a59860fd52d0b7297fd56fd23e /src/main.cpp | |
| parent | ae82ab7dca062ab65983e01c6ea49843563ae898 (diff) | |
added cmake build script and a few fixes for 64-bit compatibility
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/main.cpp b/src/main.cpp index b83fde33..773bfc16 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,18 +23,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <vld.h>
#endif // LEAK_CHECK_WITH_VLD
-#include <QApplication>
-#include <QPushButton>
-#include <QListWidget>
-#include <QComboBox>
-#include <QCheckBox>
-#include <QDir>
-#include <QFileInfo>
-#include <QSettings>
-#include <QWhatsThis>
-#include <QToolBar>
-#include <QFileDialog>
-#include <QDesktopServices>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <DbgHelp.h>
@@ -64,6 +52,22 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "tutorialmanager.h"
#include "nxmaccessmanager.h"
#include <iostream>
+#include <ShellAPI.h>
+#include <eh.h>
+#include <windows_error.h>
+#include <boost/scoped_array.hpp>
+#include <QApplication>
+#include <QPushButton>
+#include <QListWidget>
+#include <QComboBox>
+#include <QCheckBox>
+#include <QDir>
+#include <QFileInfo>
+#include <QSettings>
+#include <QWhatsThis>
+#include <QToolBar>
+#include <QFileDialog>
+#include <QDesktopServices>
#include <QMessageBox>
#include <QSharedMemory>
#include <QBuffer>
@@ -71,10 +75,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QDirIterator>
#include <QDesktopServices>
#include <QLibraryInfo>
-#include <ShellAPI.h>
-#include <eh.h>
-#include <windows_error.h>
-#include <boost/scoped_array.hpp>
+#include <QSslSocket>
#pragma comment(linker, "/manifestDependency:\"name='dlls' processorArchitecture='x86' version='1.0.0.0' type='win32' \"")
@@ -236,10 +237,10 @@ static LONG WINAPI MyUnhandledExceptionFilter(struct _EXCEPTION_POINTERS *except return EXCEPTION_EXECUTE_HANDLER;
}
_snprintf(errorBuffer, errorLen, "failed to save minidump to %ls (error %lu)",
- dumpName.c_str(), ::GetLastError());
+ dumpName.c_str(), ::GetLastError());
} else {
_snprintf(errorBuffer, errorLen, "failed to create %ls (error %lu)",
- dumpName.c_str(), ::GetLastError());
+ dumpName.c_str(), ::GetLastError());
}
} else {
return result;
@@ -378,7 +379,7 @@ int main(int argc, char *argv[]) LogBuffer::init(100, QtDebugMsg, qApp->property("dataPath").toString() + "/logs/mo_interface.log");
-#if QT_VERSION >= 0x050000
+#if QT_VERSION >= 0x050000 && !defined(QT_NO_SSL)
qDebug("ssl support: %d", QSslSocket::supportsSsl());
#endif
|
