File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,17 @@ console.log("detected platform: " + hostplatform + " in " + __dirname);
77
77
78
78
var defaultOfPath = obj [ "defaultOfPath" ] ;
79
79
var 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
+
80
91
var platforms = {
81
92
"osx" : "OS X (Xcode)" ,
82
93
"vs" : "Windows (Visual Studio 2015)" ,
@@ -289,6 +300,11 @@ function parseAddonsAndUpdateSelect(arg) {
289
300
console . log ( "in parseAddonsAndUpdateSelect " + arg ) ;
290
301
//path = require('path').resolve(__dirname, defaultOfPath + "/addons");
291
302
addons = getDirectories ( arg + "/addons" , "ofx" ) ;
303
+
304
+ addons = addons . filter ( function ( addon ) {
305
+ return addonsToSkip . indexOf ( addon ) == - 1 ;
306
+ } ) ;
307
+
292
308
console . log ( "Reloading the addons folder, these were found:" ) ;
293
309
console . log ( addons ) ;
294
310
mainWindow . webContents . send ( 'setAddons' , addons ) ;
You can’t perform that action at this time.
0 commit comments