1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

VCMIDirs update #6 fix

- Apple compilation fix
- Removed unnecessary macros
- Updated macros indent style
- Fixed 1. warning.
This commit is contained in:
Karol
2014-08-30 15:04:00 +02:00
parent 53ab0593b7
commit 37bd4790f7
6 changed files with 34 additions and 47 deletions

View File

@@ -463,7 +463,7 @@ bfs::path VCMIDirsLinux::userDataPath() const
const char* homeDir;
if ((homeDir = getenv("XDG_DATA_HOME")))
return homeDir;
else if (homeDir = getenv("HOME"))
else if ((homeDir = getenv("HOME")))
return bfs::path(homeDir) / ".local" / "share" / "vcmi";
else
return ".";