mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Replace all use of PathScanner with equivalent functions from pbd/file_utils.h
This commit is contained in:
parent
cb6934a189
commit
547689a055
10 changed files with 37 additions and 72 deletions
|
|
@ -28,7 +28,7 @@
|
|||
#include "pbd/controllable_descriptor.h"
|
||||
#include "pbd/error.h"
|
||||
#include "pbd/failed_constructor.h"
|
||||
#include "pbd/pathscanner.h"
|
||||
#include "pbd/file_utils.h"
|
||||
#include "pbd/xml++.h"
|
||||
|
||||
#include "midi++/port.h"
|
||||
|
|
@ -137,11 +137,10 @@ void
|
|||
GenericMidiControlProtocol::reload_maps ()
|
||||
{
|
||||
vector<string> midi_maps;
|
||||
PathScanner scanner;
|
||||
Searchpath spath (system_midi_map_search_path());
|
||||
spath += user_midi_map_directory ();
|
||||
|
||||
midi_maps = scanner (spath.to_string(), midi_map_filter, 0, false, true);
|
||||
find_files_matching_filter (midi_maps, spath.to_string(), midi_map_filter, 0, false, true);
|
||||
|
||||
if (midi_maps.empty()) {
|
||||
cerr << "No MIDI maps found using " << spath.to_string() << endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue