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())
|
||||
{
|
||||
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");
|
||||
if (!track_fp && track_file_index == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue