Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save and load settings #88

Open
ramdgn opened this issue Mar 4, 2024 · 0 comments
Open

Save and load settings #88

ramdgn opened this issue Mar 4, 2024 · 0 comments

Comments

@ramdgn
Copy link

ramdgn commented Mar 4, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant