Add src/apppaths.cpp
This commit is contained in:
parent
073f432298
commit
8bd584b5a1
14
src/apppaths.cpp
Normal file
14
src/apppaths.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include "apppaths.h"
|
||||
#include <QDir>
|
||||
#include <QStandardPaths>
|
||||
|
||||
QString AppPaths::configRoot() {
|
||||
const auto base = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation);
|
||||
return QDir(base).filePath("xmb");
|
||||
}
|
||||
QString AppPaths::xmbRoot() {
|
||||
return QDir(configRoot()).filePath("XMB");
|
||||
}
|
||||
QString AppPaths::assetsRoot() {
|
||||
return QDir(configRoot()).filePath("assets");
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user