minor fixes
This commit is contained in:
+1
-7
@@ -8,14 +8,8 @@
|
|||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
QString real_app_dir;
|
|
||||||
|
|
||||||
QString get_app_dir() {
|
QString get_app_dir() {
|
||||||
if (real_app_dir.isEmpty()) {
|
return QCoreApplication::applicationDirPath();
|
||||||
QString app_path = QCoreApplication::applicationFilePath();
|
|
||||||
real_app_dir = app_path.left(app_path.lastIndexOf('/'));
|
|
||||||
}
|
|
||||||
return real_app_dir;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString get_data_path() {
|
QString get_data_path() {
|
||||||
|
|||||||
Reference in New Issue
Block a user