Hi everyone. I've successfully created a system that supports using multiple languages in the game.
I also have a .json file called "settings" which stores sound and music volume, and the chosen language (all 3 are just integers). Everything is loaded into an array on startup which works fine. The problem is I want to save the settings array to overwrite the settings.json file. All I can find is the "Download as file" thing but this prompts the user to save the file which it shouldn't. It should be silent.
As far as I can tell, if I want to save the information I have to completely rewrite the settings functionality using the local storage object, saving 1 key at a time.
Am I doing things totally backwards?