Permalink
Browse files

save everything ( just in case)

  • Loading branch information...
patriciogonzalezvivo committed Mar 16, 2013
1 parent 6420d2b commit 47ae147c544934eaed9bddd3fbc862bcbd87c7ef
Showing with 12 additions and 1 deletion.
  1. +10 −0 src/ofxComposer.cpp
  2. +2 −1 src/ofxComposer.h
View
@@ -137,6 +137,16 @@ void ofxComposer::load(string _fileConfig){
}
}
+void ofxComposer::save(string _fileConfig ){
+ if (_fileConfig != "default"){
+ configFile = _fileConfig;
+ }
+
+ for(map<int,ofxPatch*>::iterator it = patches.begin(); it != patches.end(); it++ ){
+ it->second->saveSettings(configFile);
+ }
+}
+
bool ofxComposer::addPatchFromFile(string _filePath, ofPoint _position){
bool loaded = false;
View
@@ -14,7 +14,7 @@
// Comment the "define USE_OFXGLEDITOR" if you don't want to use ofxGLEditor
//
-#define USE_OFXGLEDITOR
+//#define USE_OFXGLEDITOR
#ifdef USE_OFXGLEDITOR
#include "ofxGLEditor.h"
#endif
@@ -23,6 +23,7 @@ class ofxComposer {
public:
ofxComposer();
+ void save(string _fileConfig = "default");
void load(string _fileConfig = "default");
bool addPatchFromFile(string _filePath, ofPoint _position);
bool addPatchWithOutFile(string _type, ofPoint _position);

0 comments on commit 47ae147

Please sign in to comment.