git-svn-id: svn://db.shs.com.ru/libs@114 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2016-08-15 09:03:18 +00:00
parent 8052406e54
commit fd3a7435e8
15 changed files with 420 additions and 43 deletions

View File

@@ -80,6 +80,7 @@ CDSection CDParser::parse(PIIODevice * d, int cdsection_type) {
CDType::cdT et = (CDType::cdT)cdsection_type;
if (!d) return CDSection();
if (!d->canRead()) return CDSection();
//piCout << "[CDSection] parse start";
CDSection cs;
CDType ck;
PIMap<PIString, CDSection> sections;
@@ -171,10 +172,12 @@ CDSection CDParser::parse(PIIODevice * d, int cdsection_type) {
// enum_values << cevalues;
cind += 4;
}
// piCout << "[CDSection] parse end";
switch (et) {
case CDType::cdK : return sections.value("KDescription");
case CDType::cdX : return sections.value("XDescription");
case CDType::cdC : return sections.value("CDescription");
default: return CDSection();
}
return CDSection();
}