From f13dab8e722ec574caca32daed497817c539fc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Sat, 21 Jan 2017 11:03:58 +0200 Subject: [PATCH] Windows|FS|libcore: Show full native paths While technically correct, the `%HOMEPATH%` environment variable is not familiar to most Windows users. --- doomsday/sdk/libcore/src/filesys/nativepath.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doomsday/sdk/libcore/src/filesys/nativepath.cpp b/doomsday/sdk/libcore/src/filesys/nativepath.cpp index 0653c7e759..e98cd26cc7 100644 --- a/doomsday/sdk/libcore/src/filesys/nativepath.cpp +++ b/doomsday/sdk/libcore/src/filesys/nativepath.cpp @@ -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 } }