Mercurial > projects > mde
comparison mde/input/Config.d @ 84:e0f1ec7fe73a
Merge plus a few tweaks.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sun, 31 Aug 2008 15:59:17 +0100 |
parents | ac1e3fd07275 |
children | 56c0ddd90193 |
comparison
equal
deleted
inserted
replaced
82:ac1e3fd07275 | 84:e0f1ec7fe73a |
---|---|
114 char[] name; /// Name for user to save this under. | 114 char[] name; /// Name for user to save this under. |
115 uint[] inheritants; /// Other profiles to inherit. | 115 uint[] inheritants; /// Other profiles to inherit. |
116 | 116 |
117 static Config[char[]] configs; /// All configs loaded by load(). | 117 static Config[char[]] configs; /// All configs loaded by load(). |
118 private static TreeBag!(char[]) loadedFiles; // all filenames load tried to read | 118 private static TreeBag!(char[]) loadedFiles; // all filenames load tried to read |
119 | |
120 private static Logger logger; | 119 private static Logger logger; |
121 static this() { | |
122 logger = Log.getLogger ("mde.input.Config"); | |
123 } | |
124 | 120 |
125 //BEGIN File loading/saving code | 121 //BEGIN File loading/saving code |
126 static this () { | 122 static this () { |
123 logger = Log.getLogger ("mde.input.Config"); | |
127 loadedFiles = new TreeBag!(char[]); | 124 loadedFiles = new TreeBag!(char[]); |
128 } | 125 } |
129 | 126 |
130 // Load all configs from a file. | 127 // Load all configs from a file. |
131 static void load (char[] filename) { | 128 static void load (char[] filename) { |