comparison mde/input/Config.d @ 67:108d123238c0

Changes to work with tango r3700 (post 0.99.6). Changes to logging. Replaced many uses of PathView with FilePath.
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 03 Jul 2008 12:40:31 +0100
parents 66d555da083e
children 3a737e06dc50
comparison
equal deleted inserted replaced
65:891211f034f2 67:108d123238c0
166 if (c) configs[i] = c; // Check, because we don't want null entries in configs 166 if (c) configs[i] = c; // Check, because we don't want null entries in configs
167 else debug logger.error ("Ended up with DataSection of wrong type; this should never happen."); 167 else debug logger.error ("Ended up with DataSection of wrong type; this should never happen.");
168 } 168 }
169 169
170 debug (MDE_CONFIG_DUMP) { 170 debug (MDE_CONFIG_DUMP) {
171 char tmp[128] = void; 171 logger.trace ("Loaded {} config sections.", configs.length);
172 logger.trace (logger.format (tmp, "Loaded {} config sections.", configs.length));
173 foreach (id, cfg; configs) { 172 foreach (id, cfg; configs) {
174 logger.trace ("Section " ~ id ~ 173 logger.trace ("Section " ~ id ~
175 ":\n\tbutton:\t\t" ~ parseFrom!(uint[][][uint])(cfg.button) ~ 174 ":\n\tbutton:\t\t" ~ parseFrom!(uint[][][uint])(cfg.button) ~
176 "\n\taxis:\t\t" ~ parseFrom!(uint[][][uint])(cfg.axis) ~ 175 "\n\taxis:\t\t" ~ parseFrom!(uint[][][uint])(cfg.axis) ~
177 "\n\trelMotion:\t" ~ parseFrom!(uint[][][uint])(cfg.relMotion) ); 176 "\n\trelMotion:\t" ~ parseFrom!(uint[][][uint])(cfg.relMotion) );