mirror of
https://github.com/obhq/obliteration.git
synced 2024-11-23 11:19:56 +00:00
17 lines
334 B
C++
17 lines
334 B
C++
#include "app_data.hpp"
|
|
#include "path.hpp"
|
|
|
|
#include <QDir>
|
|
#include <QStandardPaths>
|
|
|
|
static QString root()
|
|
{
|
|
return QDir::toNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation));
|
|
}
|
|
|
|
QString profiles()
|
|
{
|
|
auto path = joinPath(root(), "profiles");
|
|
return QString::fromStdString(path);
|
|
}
|