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:
@@ -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 ".";
|
||||
|
||||
Reference in New Issue
Block a user