Skip to content

Commit c8ddfe8

Browse files
thomasgeisslarturoc
authored andcommitted
ignores comments in addons.make after an addon,
e.g: ```make ofxMidi #https://github.com/danomatika/ofxMidi.git@1.1.1 ```
1 parent 31a0b6f commit c8ddfe8

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

frontend/app/projectGenerator

8.57 MB
Binary file not shown.

frontend/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,12 @@ ipc.on('isOFProjectFolder', function(event, project) {
480480
}
481481
});
482482

483-
//console.log(projectAddons);
483+
// remove comments
484+
projectAddons.forEach(function(element, index) {
485+
this[index] = this[index].split('#')[0];
486+
}, projectAddons);
487+
488+
// console.log('addons', projectAddons);
484489

485490
event.sender.send('selectAddons', projectAddons);
486491
} else {

ofxProjectGenerator/src/projects/baseProject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void baseProject::parseAddons(){
323323
auto addon = ofTrim(line);
324324
if(addon[0] == '#') continue;
325325
if(addon == "") continue;
326-
addAddon(addon);
326+
addAddon(ofSplitString(addon, "#")[0]);
327327
}
328328
}
329329

0 commit comments

Comments
 (0)