mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 08:17:55 +02:00
31 lines
789 B
C++
31 lines
789 B
C++
//
|
|
// ServerPathUtils.cpp
|
|
// libraries/shared/src
|
|
//
|
|
// Created by Ryan Huffman on 01/12/16.
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
#include "ServerPathUtils.h"
|
|
|
|
#include <QStandardPaths>
|
|
#include <QtCore/QDir>
|
|
#include <QtWidgets/qapplication.h>
|
|
#include <QDebug>
|
|
|
|
#include "PathUtils.h"
|
|
|
|
QString ServerPathUtils::getDataDirectory() {
|
|
auto dataPath = PathUtils::getRootDataDirectory();
|
|
|
|
dataPath += qApp->organizationName() + "/" + qApp->applicationName();
|
|
|
|
return QDir::cleanPath(dataPath);
|
|
}
|
|
|
|
QString ServerPathUtils::getDataFilePath(QString filename) {
|
|
return QDir(getDataDirectory()).absoluteFilePath(filename);
|
|
}
|
|
|