obliteration/gui/app_data.cpp

17 lines
334 B
C++
Raw Normal View History

2022-10-16 14:07:56 +00:00
#include "app_data.hpp"
#include "path.hpp"
2022-10-16 14:07:56 +00:00
#include <QDir>
2022-10-16 14:07:56 +00:00
#include <QStandardPaths>
static QString root()
{
return QDir::toNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation));
2022-10-16 14:07:56 +00:00
}
QString profiles()
2022-10-16 14:07:56 +00:00
{
auto path = joinPath(root(), "profiles");
2022-10-16 14:07:56 +00:00
return QString::fromStdString(path);
}