obliteration/gui/app_data.cpp
2024-10-03 08:43:26 +02:00

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);
}