mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 13:09:40 +00:00
#2460: use Application Support as user data path on OS X
This commit is contained in:
parent
47bac13749
commit
af2b08214b
1 changed files with 1 additions and 6 deletions
|
@ -7,10 +7,6 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <boost/filesystem/fstream.hpp>
|
#include <boost/filesystem/fstream.hpp>
|
||||||
|
|
||||||
/**
|
|
||||||
* FIXME: Someone with MacOS system should check this and correct if necessary
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
boost::filesystem::path getUserHome()
|
boost::filesystem::path getUserHome()
|
||||||
|
@ -49,9 +45,8 @@ boost::filesystem::path MacOsPath::getUserConfigPath() const
|
||||||
|
|
||||||
boost::filesystem::path MacOsPath::getUserDataPath() const
|
boost::filesystem::path MacOsPath::getUserDataPath() const
|
||||||
{
|
{
|
||||||
// TODO: probably wrong?
|
|
||||||
boost::filesystem::path userPath (getUserHome());
|
boost::filesystem::path userPath (getUserHome());
|
||||||
userPath /= "Library/Preferences/";
|
userPath /= "Library/Application Support/";
|
||||||
|
|
||||||
return userPath / mName;
|
return userPath / mName;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue