mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 18:05:41 -04:00
Merge pull request #2688 from CookiePLMonster/fix-absolute-cuesheets
CDImageCueSheet: Fix cuesheets with absolute paths
This commit is contained in:
commit
e735746627
@ -88,7 +88,9 @@ bool CDImageCueSheet::OpenAndParse(const char* filename, Common::Error* error)
|
|||||||
}
|
}
|
||||||
if (track_file_index == m_files.size())
|
if (track_file_index == m_files.size())
|
||||||
{
|
{
|
||||||
const std::string track_full_filename(FileSystem::BuildRelativePath(m_filename, track_filename));
|
const std::string track_full_filename(!FileSystem::IsAbsolutePath(track_filename) ?
|
||||||
|
FileSystem::BuildRelativePath(m_filename, track_filename) :
|
||||||
|
track_filename);
|
||||||
std::FILE* track_fp = FileSystem::OpenCFile(track_full_filename.c_str(), "rb");
|
std::FILE* track_fp = FileSystem::OpenCFile(track_full_filename.c_str(), "rb");
|
||||||
if (!track_fp && track_file_index == 0)
|
if (!track_fp && track_file_index == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user