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

Saving feature request #3

Open
HexHyte opened this issue Nov 30, 2023 · 1 comment
Open

Saving feature request #3

HexHyte opened this issue Nov 30, 2023 · 1 comment

Comments

@HexHyte
Copy link

HexHyte commented Nov 30, 2023

You mentioned that a preset saving feature could be implemented if requested... well, here's my request ^^
It would be really convenient to have this functionality.

@irseny
Copy link
Owner

irseny commented Dec 1, 2023

Sorry, I do no longer use a system where RivaCross would be usable
I can however assist you with implementing the functionality yourself. Should be pretty easy:

Add another case to pollUserAction() with a key of your choice in RivaCross.cpp

To safe a file you probably want to ask the user to enter a file name.
If it is not broken by curses you can use scanf() for that. Prior to the scanf() call you need to reverse the effect of noecho() with echo() and set noecho() again when scanf() is done.

Then you can use loadConfig() as a template to implement saveConfig()
Let me know if there is stuff I should elaborate more

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

2 participants