diff --git a/GUI/main.cpp b/GUI/main.cpp index ef6bb7c..96eddb5 100644 --- a/GUI/main.cpp +++ b/GUI/main.cpp @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) AddVectoredExceptionHandler(FALSE, ExceptionLogger); SetUnhandledExceptionFilter([](auto) -> LONG { Terminate(); }); - QDir::setCurrent(QFileInfo().absolutePath()); + QDir::setCurrent(QFileInfo(QString::fromStdWString(Util::GetModuleFileName().value())).absolutePath()); QApplication a(argc, argv); MainWindow w; diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index a3449cb..9c4fbaf 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -5,7 +5,6 @@ #include "setdialog.h" #include "misc.h" #include "host/util.h" -#include #include MainWindow::MainWindow(QWidget *parent) :