]>
git.siccegge.de Git - frida/frida.git/blob - src/core/Settings.cxx
1 #include "Settings.hxx"
3 Settings
* Settings::instance
= NULL
;
7 , logger(log4cxx::Logger::getLogger("core.Settings")) {
11 QStringList runtimePaths
= QStandardPaths::standardLocations(QStandardPaths::RuntimeLocation
);
12 if (! runtimePaths
.empty() && (*runtimePaths
.begin()) != "") {
13 LOG4CXX_DEBUG(logger
, "Using runtime Path \"" << runtimePaths
.begin()->toStdString() << "\" from list of length " << runtimePaths
.length());
14 runtimeDirectory
= new QDir(*runtimePaths
.begin());
16 QTemporaryDir
* dir
= new QTemporaryDir();
18 runtimeDirectory
= new QDir(dir
->path());
19 LOG4CXX_INFO(logger
, "Using custom runtime Path " << dir
->path().toStdString());
21 LOG4CXX_ERROR(logger
, "Could not create Runtime directory!");