I have a game with graphics and sound and allow you to turn them on or off. In both cases, the default is on.
I just realised that if I turn them off and restart a game, they turn themselves back on again. I’m presuming this is because I use Global variables to keep track of the status and when I restart a game, the global variables are reset. Similar thing for restore if the current status is different to the saved status.
So is it possible to save the status such that it is persisted after a restart or restore without resorting to saving to a file?