Why not have controls in your program to do these immediate, non-logic changing modifications? It can report the ideal value through a debug interface. No recompiles needed.
I'd also recommend getting used to serialisation/deserialisation. Serde for Rust makes this remarkably easy. Writing every setting to a file is simple if the compiler can do it for you, rather than you walking the long way around.
Assuming you can learn anything from the experience. What you might learn is weird idiosyncrasies and futile tactics playing from desperation. You might learn to not lose so quickly, but that's not the same as winning.