diff options
author | amet <amet.nospam@gmail.com> | 2011-01-07 00:25:32 +0400 |
---|---|---|
committer | amet <amet.nospam@gmail.com> | 2011-01-07 00:25:32 +0400 |
commit | 0931a156709c48d10ea0a8404e28a4643ae81641 (patch) | |
tree | 7be953f63461a8b77738ce5e2af3541980695682 | |
parent | 07b54585528915281cab70d0e9a928d6002522d2 (diff) |
changed: use "AddSlashAtEnd()" in CUtil::ScanForExternalSubtitles so that its Win and Linux/OSX compatible
-rw-r--r-- | xbmc/Util.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xbmc/Util.cpp b/xbmc/Util.cpp index 5e9696ee29..f5a1d8c181 100644 --- a/xbmc/Util.cpp +++ b/xbmc/Util.cpp @@ -3255,8 +3255,7 @@ void CUtil::ScanForExternalSubtitles(const CStdString& strMovie, std::vector<CSt for (int i=0;i<iSize;++i) { CStdString strPath2 = CUtil::AddFileToFolder(strLookInPaths[i],cdDir); - if (!HasSlashAtEnd(strPath2)) - strPath2 += "/"; //Should work for both remote and local files + CUtil::AddSlashAtEnd(strPath2); bool pathAlreadyAdded = false; for (unsigned int i=0; i<strLookInPaths.size(); i++) { @@ -3274,8 +3273,7 @@ void CUtil::ScanForExternalSubtitles(const CStdString& strMovie, std::vector<CSt if (g_settings.iAdditionalSubtitleDirectoryChecked == 1) { strPath = g_guiSettings.GetString("subtitles.custompath"); - if (!HasSlashAtEnd(strPath)) - strPath += "/"; //Should work for both remote and local files + CUtil::AddSlashAtEnd(strPath); strLookInPaths.push_back(strPath); } |