summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-04-17 10:31:47 -0400
committerGitHub <noreply@github.com>2020-04-17 10:31:47 -0400
commit855650215f5011082f6a3fa4dcfb69b040367911 (patch)
treec744c49d7c62c1051c99a12b793377ae40113e1f /src/main.cpp
parentff912b5f6199ade55a4eaff1c8e7eefb8145c970 (diff)
parent21166f820bc793111ad40a950807dc84e961fad5 (diff)
Merge pull request #1054 from isanae/bunch-of-fixes
Bunch of fixes
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ceaa59f2..eda31eb4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -266,8 +266,6 @@ QString determineProfile(QStringList &arguments, const Settings &settings)
if (!selectedProfileName) {
log::debug("no configured profile");
selectedProfileName = "Default";
- } else {
- log::debug("configured profile: {}", *selectedProfileName);
}
return *selectedProfileName;
@@ -300,7 +298,10 @@ MOBase::IPluginGame *determineCurrentGame(
if (gameConfigured) {
MOBase::IPluginGame *game = plugins.managedGame(*gameName);
if (game == nullptr) {
- reportError(QObject::tr("Plugin to handle %1 no longer installed").arg(*gameName));
+ reportError(
+ QObject::tr("Plugin to handle %1 no longer installed. An antivirus might have deleted files.")
+ .arg(*gameName));
+
return nullptr;
}
@@ -959,6 +960,8 @@ int main(int argc, char *argv[])
log::getDefault().setFile(MOBase::log::File::single(logFile.toStdWString()));
+ log::debug("command line: '{}'", QString::fromWCharArray(GetCommandLineW()));
+
QString splash = dataPath + "/splash.png";
if (!QFile::exists(dataPath + "/splash.png")) {
splash = ":/MO/gui/splash";