From a7dbec54eef860c4195a74082bebdeb93ba981cf Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 27 May 2023 16:49:09 -0400 Subject: [PATCH] cwIoPresetSelApp.cpp : Pass fname with load menu directory from cfg. --- cwIoPresetSelApp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cwIoPresetSelApp.cpp b/cwIoPresetSelApp.cpp index d6ccef9..1a1d258 100644 --- a/cwIoPresetSelApp.cpp +++ b/cwIoPresetSelApp.cpp @@ -641,7 +641,8 @@ namespace cw for(unsigned i=0; iperfDirL->child_count(); ++i) { const object_t* d; - const char* dir; + const char* dir=nullptr; + const char* fname=nullptr; // get the directory dict. from the cfg file if((d = app->perfDirL->child_ele(i)) == nullptr || !d->is_dict() ) @@ -651,14 +652,14 @@ namespace cw } // get the directory - if((rc = d->getv("dir",dir)) != kOkRC ) + if((rc = d->getv("dir",dir,"fname",fname)) != kOkRC ) { rc = cwLogError(rc ,"Error parsing the performance directory entry at index '%i'.",i); goto errLabel; } // create the performance records from this directory - if((rc = _parse_perf_recording_dir(app,dir,"play_score.csv")) != kOkRC ) + if((rc = _parse_perf_recording_dir(app,dir,fname)) != kOkRC ) { rc = cwLogError(rc ,"Error creating the performance directory entry at index '%i'.",i); goto errLabel;