Reset a core variable everytime core is started?

how do you implement a reset-core like feature? for example running different aspect ratio in options but the next time you run the core it should reset the variable to auto or whichever is default available for the rom based on its region?

example like this: { “fceumm_aspect”, “Preferred aspect ratio; auto|ntsc|pal|4:3” },

if you select “pal” it will always start with pal until you manually change it. do we have such an implementation that restore it back to “auto” each core run?

I think the problem with that is that it gets written to the core options file once it’s set and there’s no action to go back and re-set it. I’m not sure if you could do something in retro_deinit to change it back, though…