Skip to content

Commit

Permalink
fixed example menu
Browse files Browse the repository at this point in the history
  • Loading branch information
d3cod3 committed Nov 28, 2019
1 parent 2009615 commit e21a6e3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ void ofApp::drawMainMenu(){
}

if(ImGui::BeginMenu("Examples")){
#if defined(TARGET_OSX)
examplesRoot.listDir(mosaicExamplesPath.string());
#else
examplesRoot.listDir(ofToDataPath("../examples"));
#endif
examplesRoot.sort();
for(int i=0;i<examplesRoot.getFiles().size();i++){
createDirectoryNode(examplesRoot.getFiles().at(i));
Expand Down Expand Up @@ -806,9 +810,14 @@ void ofApp::initDataFolderFromBundle(){

ofSetDataPathRoot(mosaicPath); // tell OF to look for resources here

examplesRoot.listDir(mosaicExamplesPath.string());

#else

examplesRoot.listDir(ofToDataPath("../examples"));

#endif

examplesRoot.listDir(mosaicExamplesPath.string());
examplesRoot.sort();

}
Expand Down

0 comments on commit e21a6e3

Please sign in to comment.