Skip to content

Commit

Permalink
Allow presets to be overriden by more specific options
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Jan 25, 2020
1 parent 01eda11 commit 8a12282
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bt2_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1621,8 +1621,11 @@ static void parseOptions(int argc, const char **argv) {
// use according to other parameters.
unique_ptr<Presets> presets(new PresetsV0());
// Apply default preset
if(!defaultPreset.empty()) {
if (presetList.empty())
polstr = applyPreset(defaultPreset, *presets.get()) + polstr;
else {
for (size_t i = presetList.size(); i != 0; i--)
polstr = applyPreset(presetList[i-1], *presets.get()) + polstr;
}
// Apply specified presets
for(size_t i = 0; i < presetList.size(); i++) {
Expand Down

0 comments on commit 8a12282

Please sign in to comment.