OpenDingux: Separate the settings-saving code into settings.c and settings.h. Shorten gui.c and put type definitions into gui.h.