Save and load settings
I see in the code traces for saving and loading settings to the file : "settings.txt"
if( ofGetKeyPressed(MUI_KEY_ACTION) && key == ',' ){
ofSystemAlertDialog("All settings are in the editable file '" + ofxToReadWriteableDataPath("settings.txt") + "' \n"
"\n"
"1. Edit settings.txt\n"
"2. Switch back to the oscilloscope application"
);
ofxNative::showFile(ofxToReadWriteableDataPath("settings.txt"));
}
if( ofGetKeyPressed(MUI_KEY_ACTION) && key == 'r'){
globals.loadFromFile();
playerOverlay->fromGlobals();
}
But it seems to be inoperative. I run it under Windows so MUI_KEY_ACTION is the Ctrl key.
What do I do wrong?
0 条评论