diff options
| -rw-r--r-- | menuApp/src/dirscanner.cpp | 5 | ||||
| -rw-r--r-- | menuApp/src/dirscanner.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/menuApp/src/dirscanner.cpp b/menuApp/src/dirscanner.cpp index 2165b67..ec67b4f 100644 --- a/menuApp/src/dirscanner.cpp +++ b/menuApp/src/dirscanner.cpp @@ -92,7 +92,8 @@ void dirScanner::scan(){ if (start||end){ slots.push_back(timeSlot(dir.getPath(i),start,end)); - ofLogNotice() << "directory "<<i<<": "<<start<<" - "<<end<<" "<<dir.getPath(i); + ofLogNotice() << "directory "<<i<<": "<<start<<" - "<<end<<" "<<slots[slots.size()-1].path; + //dir.getPath(i); } } @@ -114,6 +115,7 @@ int dirScanner::getSlotForTime(){ } else { if (slots[i].end>=railwaytime||slots[i].start<=railwaytime){ + ofLogNotice() << "got slot: "<<slots[i].start<<"-"<<slots[i].end<<" - "<<slots[i].path; return i; } } @@ -153,6 +155,7 @@ bool dirPlayer::draw(){ if(slot==-1) return false; if (slot!=currentslot){ if (slot>-1){ + ofLogNotice() << "got slot: "<<slot; ofLogNotice() << "entering slot "<<slot<<": "<<scanner->slots[slot].path; load(scanner->slots[slot].path); } diff --git a/menuApp/src/dirscanner.h b/menuApp/src/dirscanner.h index f6351e5..129900a 100644 --- a/menuApp/src/dirscanner.h +++ b/menuApp/src/dirscanner.h @@ -10,7 +10,7 @@ class timeSlot { start=_s; end=_e; } - string path; + std::string path; int start; int end; }; |
