TiManGames / AmnesiaTheDarkDescent

GNU General Public License v3.0
30 stars 8 forks source link

Feature: save configs in pretty format #21

Closed jkulawik closed 1 month ago

jkulawik commented 1 month ago

Would be nice if the configs saved with proper spacing rather than the very cramped XML we got today. Probably shouldn't be too complicated to implement

jkulawik commented 1 month ago

Sadly, it seems like this would require upgrading tinyXML and fixing the ensuing chaos of direct tinyXML usage and the cXmlDocumentTiny abstraction usage.

Looking at the source of tinyXML, it should save in pprint by default; in fact, we see this in save files for the game progress. But for no apparent reason, editor configs (which use cConfigFile) save unformatted. Perhaps tinyXML simply doesn't format long attribute.

Long story short, doing this is too involved for the tiny benefit it gives.