1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 21:45:32 +00:00

#2460: use Application Support as user data path on OS X

This commit is contained in:
Nikolay Kasyanov 2015-03-18 23:48:03 +02:00
parent 47bac13749
commit af2b08214b

View file

@ -7,10 +7,6 @@
#include <unistd.h>
#include <boost/filesystem/fstream.hpp>
/**
* FIXME: Someone with MacOS system should check this and correct if necessary
*/
namespace
{
boost::filesystem::path getUserHome()
@ -49,9 +45,8 @@ boost::filesystem::path MacOsPath::getUserConfigPath() const
boost::filesystem::path MacOsPath::getUserDataPath() const
{
// TODO: probably wrong?
boost::filesystem::path userPath (getUserHome());
userPath /= "Library/Preferences/";
userPath /= "Library/Application Support/";
return userPath / mName;
}