aboutsummaryrefslogtreecommitdiff
path: root/src/file_functions.h
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/file_functions.h
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/file_functions.h')
-rw-r--r--src/file_functions.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/file_functions.h b/src/file_functions.h
index ca1eeb5e..252148fd 100644
--- a/src/file_functions.h
+++ b/src/file_functions.h
@@ -1,11 +1,10 @@
#pragma once
-#include <QCoreApplication>
-#include <QDir>
-#include <QFileInfo>
#include <QString>
bool file_exists(QString file_path);
bool dir_exists(QString file_path);
bool exists(QString p_path);
+
+QString get_app_path();
QString get_base_path();