File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
cyril.xcodeproj/project.xcworkspace/xcuserdata/darren.xcuserdatad Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -266,12 +266,16 @@ void cyrilApp::toggleLights(void * _o) {
266
266
}
267
267
void cyrilApp::loadFile (void * _o) {
268
268
int whichEditor = ((cyrilApp *)_o)->editor .currentBuffer ;
269
+ ofSetDataPathRoot (" ../../../" );
269
270
((cyrilApp *)_o)->editor .loadFile (ofToString (whichEditor)+" .txt" , whichEditor);
271
+ ofSetDataPathRoot (" ../Resources/data" );
270
272
((cyrilApp *)_o)->editor .update ();
271
273
}
272
274
void cyrilApp::saveFile (void * _o) {
273
275
int whichEditor = ((cyrilApp *)_o)->editor .currentBuffer ;
274
- ((cyrilApp *)_o)->editor .saveFile (ofToString (whichEditor)+" .txt" , whichEditor);
276
+ ofSetDataPathRoot (" ../../../" );
277
+ ((cyrilApp *)_o)->editor .saveFile (ofToString (whichEditor)+" .txt" , whichEditor);
278
+ ofSetDataPathRoot (" ../Resources/data" );
275
279
}
276
280
void cyrilApp::resetTimers (void * _o) {
277
281
((cyrilApp *)_o)->doResetTimers = true ;
You can’t perform that action at this time.
0 commit comments