13 #include <sys/types.h>
18 #include <sys/types.h>
25 std::string appDataDir;
28 const wchar_t* appDataPath = _wgetenv(L
"APPDATA");
30 std::filesystem::path winPath = std::filesystem::path(appDataPath);
31 appDataDir = winPath.string();
33#elif defined(OS_MACOS)
34 const char* homeDir = getenv(
"HOME");
36 appDataDir = std::string(homeDir) +
"/Library/Application Support";
39 const char* homeDir = getenv(
"HOME");
41 appDataDir = std::string(homeDir) +
"/.local/share";
std::string getAppDataDir()
Definition: appDataFoulder.h:24