diff options
Diffstat (limited to 'lib/ffs_paths.h')
-rw-r--r-- | lib/ffs_paths.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/ffs_paths.h b/lib/ffs_paths.h index ac032e6b..9376825b 100644 --- a/lib/ffs_paths.h +++ b/lib/ffs_paths.h @@ -79,14 +79,7 @@ Zstring getResourceDir() if (isPortableVersion()) return impl::getBinaryDir(); else //use OS' standard paths - { - Zstring resourceDir = toZ(wxStandardPathsBase::Get().GetResourcesDir()); - - if (!endsWith(resourceDir, FILE_NAME_SEPARATOR)) - resourceDir += FILE_NAME_SEPARATOR; - - return resourceDir; - } + return appendSeparator(toZ(wxStandardPathsBase::Get().GetResourcesDir())); #endif } @@ -113,10 +106,7 @@ Zstring getConfigDir() } catch (const FileError&) {} - if (!endsWith(userDirectory, FILE_NAME_SEPARATOR)) - userDirectory += FILE_NAME_SEPARATOR; - - return userDirectory; + return appendSeparator(userDirectory); } } |