4
0
mirror of https://github.com/QuasarApp/QuasarAppLib.git synced 2025-05-03 13:09:41 +00:00

ufdate cmake

This commit is contained in:
Andrei Yankovich 2020-09-28 23:42:54 +03:00
parent f84faab0dd
commit f873269780
3 changed files with 13 additions and 2 deletions

2
CMake

@ -1 +1 @@
Subproject commit b0765bd212bd0a4fd310cb3dd99b4f1f8ac5dc57
Subproject commit 93ff4e899ed4e39b6d3e882fcc6acdf199e729e3

@ -105,7 +105,11 @@ void Params::clearParsedData() {
}
QString Params::getCurrentExecutable() {
return getStrArg(APP_PATH) + "/" + getStrArg(APP_NAME);
return getCurrentExecutableDir() + "/" + getStrArg(APP_NAME);
}
QString Params::getCurrentExecutableDir() {
return getStrArg(APP_PATH);
}
int Params::size() {

@ -164,6 +164,13 @@ public:
* @return path to current executable.
*/
static QString getCurrentExecutable();
/**
* @brief getCurrentExecutableDir This method return a path to a folder with the current executable.
* @return path of executable.
*/
static QString getCurrentExecutableDir();
};
}