Skip to content

Commit

Permalink
Windows|FS|libcore: Show full native paths
Browse files Browse the repository at this point in the history
While technically correct, the `%HOMEPATH%` environment variable is not
familiar to most Windows users.
  • Loading branch information
skyjake committed Jan 21, 2017
1 parent 85372a8 commit f13dab8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/sdk/libcore/src/filesys/nativepath.cpp
Expand Up @@ -215,11 +215,13 @@ String NativePath::pretty() const
return "(app)" + result.mid(contentsPath.length());
}
#endif
#ifndef WIN32 // Windows users are not familiar with a symbolic home path.
NativePath homePath = QDir::homePath(); // actual native home dir, not FS2 "/home"
if (result.beginsWith(homePath))
{
result = NATIVE_HOME_SYMBOLIC + result.mid(homePath.length());
}
#endif
}
}

Expand Down

0 comments on commit f13dab8

Please sign in to comment.