Merge pull request #3060 from martymac/FreeBSD-fixes

Free bsd fixes
This commit is contained in:
Connor McLaughlin
2023-12-02 16:53:28 +10:00
committed by GitHub
4 changed files with 6 additions and 4 deletions

View File

@ -290,7 +290,7 @@ void QtHost::SetDataDirectory()
EmuFolders::DataRoot = Path::Combine(StringUtil::WideStringToUTF8String(documents_directory), "DuckStation");
CoTaskMemFree(documents_directory);
}
#elif defined(__linux__)
#elif defined(__linux__) || defined(__FreeBSD__)
// Use $XDG_CONFIG_HOME/duckstation if it exists.
const char* xdg_config_home = getenv("XDG_CONFIG_HOME");
if (xdg_config_home && Path::IsAbsolute(xdg_config_home))