RivaCross icon indicating copy to clipboard operation
RivaCross copied to clipboard

Saving feature request

Open HexHyte opened this issue 2 years ago • 1 comments

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.

HexHyte avatar Nov 30 '23 14:11 HexHyte

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

irseny avatar Dec 01 '23 23:12 irseny