aboutsummaryrefslogtreecommitdiff
path: root/launcher/Application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r--launcher/Application.cpp48
1 files changed, 29 insertions, 19 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 37724038..958c5e3d 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -322,14 +322,17 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
{
showFatalErrorMessage(
"The launcher data folder could not be created.",
- "The launcher data folder could not be created.\n"
- "\n"
+ QString(
+ "The launcher data folder could not be created.\n"
+ "\n"
#if defined(Q_OS_MAC)
- MACOS_HINT
+ MACOS_HINT
#endif
- "Make sure you have the right permissions to the launcher data folder and any folder needed to access it.\n"
- "\n"
- "The launcher cannot continue until you fix this problem."
+ "Make sure you have the right permissions to the launcher data folder and any folder needed to access it.\n"
+ "(%1)\n"
+ "\n"
+ "The launcher cannot continue until you fix this problem."
+ ).arg(dataPath)
);
return;
}
@@ -337,14 +340,17 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
{
showFatalErrorMessage(
"The launcher data folder could not be opened.",
- "The launcher data folder could not be opened.\n"
- "\n"
+ QString(
+ "The launcher data folder could not be opened.\n"
+ "\n"
#if defined(Q_OS_MAC)
- MACOS_HINT
+ MACOS_HINT
#endif
- "Make sure you have the right permissions to the launcher data folder.\n"
- "\n"
- "The launcher cannot continue until you fix this problem."
+ "Make sure you have the right permissions to the launcher data folder.\n"
+ "(%1)\n"
+ "\n"
+ "The launcher cannot continue until you fix this problem."
+ ).arg(dataPath)
);
return;
}
@@ -494,14 +500,17 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
{
showFatalErrorMessage(
"The launcher data folder is not writable!",
- "The launcher couldn't create a log file - the data folder is not writable.\n"
- "\n"
+ QString(
+ "The launcher couldn't create a log file - the data folder is not writable.\n"
+ "\n"
#if defined(Q_OS_MAC)
- MACOS_HINT
+ MACOS_HINT
#endif
- "Make sure you have write permissions to the data folder.\n"
- "\n"
- "The launcher cannot continue until you fix this problem."
+ "Make sure you have write permissions to the data folder.\n"
+ "(%1)\n"
+ "\n"
+ "The launcher cannot continue until you fix this problem."
+ ).arg(dataPath)
);
return;
}
@@ -512,7 +521,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
// Set up paths
{
// Root path is used for updates.
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
QDir foo(FS::PathCombine(binPath, ".."));
m_rootPath = foo.absolutePath();
#elif defined(Q_OS_WIN32)
@@ -827,6 +836,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
qDebug() << "Loading accounts...";
m_accounts->setListFilePath("accounts.json", true);
m_accounts->loadList();
+ m_accounts->fillQueue();
qDebug() << "<> Accounts loaded.";
}