Skip to content

Commit

Permalink
CDTracks: fix ini read error when tracks are setup under different fo…
Browse files Browse the repository at this point in the history
…lders
  • Loading branch information
emoose committed Dec 3, 2024
1 parent 2242d9b commit 205cd9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions external/ini-cpp/ini/ini.h
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,9 @@ inline const bool INIReader::BoolConverter(std::string s) const {
inline int INIReader::ValueHandler(void* user, const char* section,
const char* name, const char* value) {
INIReader* reader = (INIReader*)user;
if (!stricmp(section, "CDTracks"))
return 1; // HACK: ignore CDTracks section, OR2006Tweaks handles that seperately

if (reader->_values[section][name].size() > 0) {
throw std::runtime_error("duplicate key '" + std::string(name) +
"' in section '" + section + "'.");
Expand Down

0 comments on commit 205cd9f

Please sign in to comment.