summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-11-09 04:27:12 -0500
committerGitHub <noreply@github.com>2020-11-09 04:27:12 -0500
commit84e53f3ab3cd2b89eed3e37be734da3e997f4032 (patch)
tree2b14f10377b1ca2b85317c62267a6cf74c64d102 /src/shared
parentd23b38b4dfbc61ffe509dd2627ecbf3589409409 (diff)
parentefdda8e7385446096a1032c2b7c2aeaf57132c78 (diff)
Merge pull request #1284 from isanae/command-line-cleanup
Command line cleanup
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/appconfig.inc2
-rw-r--r--src/shared/error_report.cpp10
-rw-r--r--src/shared/error_report.h8
3 files changed, 19 insertions, 1 deletions
diff --git a/src/shared/appconfig.inc b/src/shared/appconfig.inc
index 807f1d69..5839c2f4 100644
--- a/src/shared/appconfig.inc
+++ b/src/shared/appconfig.inc
@@ -11,7 +11,7 @@ APPPARAM(std::wstring, logPath, L"logs")
APPPARAM(std::wstring, dumpsDir, L"crashDumps")
APPPARAM(std::wstring, defaultProfileName, L"Default")
APPPARAM(std::wstring, profileTweakIni, L"profile_tweaks.ini")
-APPPARAM(std::wstring, logFileName, L"ModOrganizer.log")
+APPPARAM(std::wstring, logFileName, L"mo_interface.log")
APPPARAM(std::wstring, iniFileName, L"ModOrganizer.ini")
APPPARAM(std::wstring, proxyDLLTarget, L"steam_api.dll")
APPPARAM(std::wstring, proxyDLLOrig, L"steam_api_orig.dll") // needs to be identical to the value used in proxydll-project
diff --git a/src/shared/error_report.cpp b/src/shared/error_report.cpp
index 4185b544..09fdcb49 100644
--- a/src/shared/error_report.cpp
+++ b/src/shared/error_report.cpp
@@ -51,4 +51,14 @@ void reportError(LPCWSTR format, ...)
MessageBoxW(nullptr, buffer, L"Error", MB_OK | MB_ICONERROR);
}
+void criticalOnTop(const QString& message)
+{
+ QMessageBox mb(QMessageBox::Critical, QObject::tr("Mod Organizer"), message);
+
+ mb.show();
+ mb.activateWindow();
+ mb.raise();
+ mb.exec();
+}
+
} // namespace MOShared
diff --git a/src/shared/error_report.h b/src/shared/error_report.h
index da07c728..9343d3da 100644
--- a/src/shared/error_report.h
+++ b/src/shared/error_report.h
@@ -31,6 +31,14 @@ namespace MOShared
void reportError(LPCSTR format, ...);
void reportError(LPCWSTR format, ...);
+// shows a critical message box that's raised to the top of the zorder, useful
+// for messages without a main window, which sometimes makes them pop up behind
+// all other windows
+//
+// the dialog is not topmost, it's just raised once when shown
+//
+void criticalOnTop(const QString& message);
+
} // namespace MOShared
#endif // MODORGANIZER_SHARED_ERROR_REPORT_INCLUDED