aboutsummaryrefslogtreecommitdiff
path: root/src/lobby.cpp
diff options
context:
space:
mode:
authorLeifa <26681464+TrickyLeifa@users.noreply.github.com>2024-07-06 18:05:48 +0200
committerGitHub <noreply@github.com>2024-07-06 18:05:48 +0200
commit03025119c4a7316e83f5336756d3afc9d1ff82b1 (patch)
tree72661dd1ec0c1149e3fcf5641bc92c14cd2fae71 /src/lobby.cpp
parenta1e13f62fd47f09dc973e7c36987e161ecb19cdf (diff)
Improve OS detection and add APPIMAGE support to pathing code (#1003)
* Added get_app_path, tweaked pathing to adjust itself for Linux, ... * Added get_app_path * This should be used instead of QCoreApplication::applicationDirPath() * Tweaked pathing to adjust itself for Linux * Append separator to base path * Moved headers where they are needed. (Dunno why they were here.) * Proper pathing for AppImage
Diffstat (limited to 'src/lobby.cpp')
-rw-r--r--src/lobby.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lobby.cpp b/src/lobby.cpp
index f853380f..aba9f606 100644
--- a/src/lobby.cpp
+++ b/src/lobby.cpp
@@ -425,7 +425,7 @@ void Lobby::on_demo_clicked(QTreeWidgetItem *item, int column)
return;
}
- QString l_filepath = (QApplication::applicationDirPath() + "/logs/%1/%2").arg(item->data(0, Qt::DisplayRole).toString(), item->data(1, Qt::DisplayRole).toString());
+ QString l_filepath = (get_app_path() + "/logs/%1/%2").arg(item->data(0, Qt::DisplayRole).toString(), item->data(1, Qt::DisplayRole).toString());
ao_app->demo_server->start_server();
ServerInfo demo_server;
demo_server.ip = "127.0.0.1";