diff options
Diffstat (limited to 'menuApp')
| -rw-r--r-- | menuApp/src/dirscanner.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/menuApp/src/dirscanner.cpp b/menuApp/src/dirscanner.cpp index 270af0f..a8c519b 100644 --- a/menuApp/src/dirscanner.cpp +++ b/menuApp/src/dirscanner.cpp @@ -136,12 +136,13 @@ void dirPlayer::load(std::string path){ dir.listDir(); for(int i = 0; i < dir.size(); i++){ string d=dir.getPath(i); - playItem item; - ofLogNotice() << "about to load: "<<i; - if (item.load(d)){ - ofLogNotice() << "pushing back: "<<i; - items.push_back(item); - } + items.push_back(playItem()); + items[items.size()-1].load(d); + //ofLogNotice() << "about to load: "<<i; + //if (item.load(d)){ + // ofLogNotice() << "pushing back: "<<i; + // items.push_back(item); + //} } ofLogNotice() << "found "<<items.size()<<" items"; currentItem=items.size()-1; |
