mirror of https://github.com/OpenMW/openmw.git
Merge branch 'join_path' into 'master'
Join path components using path::operator/ instead of string::operator+ See merge request OpenMW/openmw!26527220-lua-add-a-general-purpose-lexical-parser
commit
22c62a8c38
@ -0,0 +1,27 @@
|
||||
#ifndef OPENMW_COMPONENTS_FILES_QTCONFIGPATH_H
|
||||
#define OPENMW_COMPONENTS_FILES_QTCONFIGPATH_H
|
||||
|
||||
#include "configurationmanager.hpp"
|
||||
#include "qtconversion.hpp"
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace Files
|
||||
{
|
||||
inline QString getLocalConfigPathQString(const Files::ConfigurationManager& cfgMgr)
|
||||
{
|
||||
return Files::pathToQString(cfgMgr.getLocalPath() / openmwCfgFile);
|
||||
}
|
||||
|
||||
inline QString getUserConfigPathQString(const Files::ConfigurationManager& cfgMgr)
|
||||
{
|
||||
return Files::pathToQString(cfgMgr.getUserConfigPath() / openmwCfgFile);
|
||||
}
|
||||
|
||||
inline QString getGlobalConfigPathQString(const Files::ConfigurationManager& cfgMgr)
|
||||
{
|
||||
return Files::pathToQString(cfgMgr.getGlobalPath() / openmwCfgFile);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OPENMW_COMPONENTS_FILES_QTCONFIGPATH_H
|
Loading…
Reference in New Issue