File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,6 +77,17 @@ console.log("detected platform: " + hostplatform + " in " + __dirname);
7777
7878var defaultOfPath = obj [ "defaultOfPath" ] ;
7979var addons ;
80+
81+ // hide some addons, per https://github.com/openframeworks/projectGenerator/issues/62
82+
83+ var addonsToSkip = [
84+ "ofxiOS" ,
85+ "ofxMultiTouch" ,
86+ "ofxEmscripten" ,
87+ "ofxAccelerometer" ,
88+ "ofxAndroid"
89+ ]
90+
8091var platforms = {
8192 "osx" : "OS X (Xcode)" ,
8293 "vs" : "Windows (Visual Studio 2015)" ,
@@ -289,6 +300,11 @@ function parseAddonsAndUpdateSelect(arg) {
289300 console . log ( "in parseAddonsAndUpdateSelect " + arg ) ;
290301 //path = require('path').resolve(__dirname, defaultOfPath + "/addons");
291302 addons = getDirectories ( arg + "/addons" , "ofx" ) ;
303+
304+ addons = addons . filter ( function ( addon ) {
305+ return addonsToSkip . indexOf ( addon ) == - 1 ;
306+ } ) ;
307+
292308 console . log ( "Reloading the addons folder, these were found:" ) ;
293309 console . log ( addons ) ;
294310 mainWindow . webContents . send ( 'setAddons' , addons ) ;
You can’t perform that action at this time.
0 commit comments