ITADN

Save and load settings

#88Openramdgn 创建于 2024-03-04
R
ramdgncommented
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 条评论