Mercurial > hg > soniczoomios
diff presetManager.mm @ 32:ab7c86d0f3d8
V0.3 SZBeta sent out. bristol tests.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 08 Mar 2013 14:54:55 +0000 |
parents | 23ef179c3748 |
children | 790939017078 |
line wrap: on
line diff
--- a/presetManager.mm Fri Mar 01 13:28:45 2013 +0000 +++ b/presetManager.mm Fri Mar 08 14:54:55 2013 +0000 @@ -264,7 +264,17 @@ presetFile << root; } - +//--------------------------------------------------------------------------- +void PresetManager::saveSessionToFile(string userName){ // for supervised newUser() + ofFile presetFile(ofxiPhoneGetDocumentsDirectory() + userName + '_' + PRESET_FILENAME,ofFile::WriteOnly); + + // stick all the stuff in a json value + Json::Value root = allPresetsToJson(); + + cout << root; + presetFile << root; + +} //--------------------------------------------------------------------------- void PresetManager::clearAll(){ thePresets.clear();