summaryrefslogtreecommitdiff
path: root/menuApp/src
diff options
context:
space:
mode:
Diffstat (limited to 'menuApp/src')
-rw-r--r--menuApp/src/dirscanner.cpp13
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;