From dfe8093c1ad16e1611c12e88d52d1ac38371d3f6 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 1 Jul 2019 08:42:58 -0400 Subject: added --crashdump to generate dumps of a running MO process added dump_running_process.bat to start another instance of MO with that flag --- src/settings.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index 59d3369a..5cb2524f 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -222,7 +222,7 @@ QString Settings::deObfuscate(const QString key) if (e != ERROR_NOT_FOUND) { qCritical().nospace() << "Retrieving encrypted data failed: " - << formatSystemMessage(e); + << formatSystemMessageQ(e); } } delete[] keyData; @@ -367,7 +367,11 @@ bool Settings::setNexusApiKey(const QString& apiKey) { if (!obfuscate("APIKEY", apiKey)) { const auto e = GetLastError(); - qCritical().nospace() << "Storing API key failed: " << formatSystemMessage(e); + + qCritical().nospace() + << "Storing API key failed: " + << formatSystemMessageQ(e); + return false; } @@ -485,7 +489,7 @@ void Settings::setSteamLogin(QString username, QString password) const auto e = GetLastError(); qCritical().nospace() << "Storing or deleting password failed: " - << formatSystemMessage(e); + << formatSystemMessageQ(e); } } -- cgit v1.3.1