Thursday, June 5, 2014

FMod - The New Configuration

Abiathar is again compiling! I did a whole bunch more hack-and-slash removal of the old ConfigHelper-based config engine and migrated everything over to the FrofConf (FleexConfig) way. I finished writing the representative structures for the editor, file, and template configurations. All mention of the profile system has been ripped out, even in the Dependency Collector.

The DC now holds onto a selected template, which is duplicated into the file config when opened. All the HasMapDict business has gone away; it's just a Boolean field. Some casting needed to be done to pass the configuration through the Interop module, but it's type-safe now. In other news, Abiathar now throws up a splash "loading" screen instead of appearing to do nothing while loading.

Currently, I'm having a little trouble with it deciding to create a zero-byte file instead of actually saving the configuration. The editor configuration has defaults now, but I still need to write in the defaults for all the profiles - that's going to be the hardest part of this entire upgrade. Once all that is done, new features can happen easily!

No comments:

Post a Comment