diff options
author | Jonathan Marshall <jmarshall@never.you.mind> | 2012-12-01 19:32:48 +1300 |
---|---|---|
committer | Jonathan Marshall <jmarshall@never.you.mind> | 2012-12-01 19:33:40 +1300 |
commit | b3d6b634346be1cc26c24cfe2fa20f1f1a0f1b36 (patch) | |
tree | a200ee36640d2fc27846fd53acb4ac65a09a7f6e | |
parent | b85aa19d95ccfb037bf7707ce61a25a7e6aafa9a (diff) |
[cuesheet] relative cuesheet paths weren't working. fixes #13616
-rw-r--r-- | xbmc/CueDocument.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xbmc/CueDocument.cpp b/xbmc/CueDocument.cpp index d01157f844..ad62ac6446 100644 --- a/xbmc/CueDocument.cpp +++ b/xbmc/CueDocument.cpp @@ -357,13 +357,17 @@ int CCueDocument::ExtractNumericInfo(const CStdString &info) //////////////////////////////////////////////////////////////////////////////////// bool CCueDocument::ResolvePath(CStdString &strPath, const CStdString &strBase) { + CLog::Log(LOGDEBUG, "%s strPath = '%s'", __FUNCTION__, strPath.c_str()); + CLog::Log(LOGDEBUG, "%s strBase = '%s'", __FUNCTION__, strBase.c_str()); CStdString strDirectory; URIUtils::GetDirectory(strBase, strDirectory); + CLog::Log(LOGDEBUG, "%s strDirectory = '%s'", __FUNCTION__, strDirectory.c_str()); - CStdString strFilename = strPath; - URIUtils::GetFileName(strFilename); + CStdString strFilename = URIUtils::GetFileName(strPath); + CLog::Log(LOGDEBUG, "%s strFilename = '%s'", __FUNCTION__, strFilename.c_str()); URIUtils::AddFileToFolder(strDirectory, strFilename, strPath); + CLog::Log(LOGDEBUG, "%s strPath = '%s'", __FUNCTION__, strPath.c_str()); // i *hate* windows if (!CFile::Exists(strPath)) @@ -375,6 +379,7 @@ bool CCueDocument::ResolvePath(CStdString &strPath, const CStdString &strBase) if (items[i]->GetPath().Equals(strPath)) { strPath = items[i]->GetPath(); + CLog::Log(LOGDEBUG, "%s strPath = '%s'", __FUNCTION__, strPath.c_str()); return true; } } |