14 #include <sys/types.h>
19 #include <sys/types.h>
26 std::string appDataDir;
29 const wchar_t* appDataPath = _wgetenv(L
"APPDATA");
31 std::filesystem::path winPath = std::filesystem::path(appDataPath);
32 appDataDir = winPath.string();
34#elif defined(OS_MACOS)
35 const char* homeDir = getenv(
"HOME");
37 appDataDir = std::string(homeDir) +
"/Library/Application Support";
40 const char* homeDir = getenv(
"HOME");
42 appDataDir = std::string(homeDir) +
"/.local/share";
std::string getAppDataDir()
Definition: appDataFoulder.h:25