Skip to content

Commit 205cd9f

Browse files
committed
CDTracks: fix ini read error when tracks are setup under different folders
1 parent 2242d9b commit 205cd9f

File tree

1 file changed

+3
-0
lines changed
  • external/ini-cpp/ini

1 file changed

+3
-0
lines changed

external/ini-cpp/ini/ini.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,9 @@ inline const bool INIReader::BoolConverter(std::string s) const {
579579
inline int INIReader::ValueHandler(void* user, const char* section,
580580
const char* name, const char* value) {
581581
INIReader* reader = (INIReader*)user;
582+
if (!stricmp(section, "CDTracks"))
583+
return 1; // HACK: ignore CDTracks section, OR2006Tweaks handles that seperately
584+
582585
if (reader->_values[section][name].size() > 0) {
583586
throw std::runtime_error("duplicate key '" + std::string(name) +
584587
"' in section '" + section + "'.");

0 commit comments

Comments
 (0)