comparison mde/file/mergetag/MTTagWriter.d @ 137:9f035cd139c6

BIG commit. Major change: old Options class is gone, all content values are loaded and saved automatically. All options updated to reflect this, some changed. Content restrutured a lot: New IContent module, Content module includes more functionality. New ContentLoader module to manage content loading/saving/translation. Translation module moved to content dir and cut down to reflect current usage. File format unchanged except renames: FontOptions -> Font, VideoOptions -> Screen. Font render mode and LCD filter options are now enums. GUI loading needs to create content (and set type for enums), but doesn't save/load value. Some setup of mainSchedule moved to mde.mainLoop. Content callbacks are called on content change now. ContentLists are set up implicitly from content symbols. Not as fast but much easier! Bug-fix in the new MTTagReader. Renamed MT *Reader maker functions to avoid confusion in paths.d. New mde.setup.logger module to allow logger setup before any other module's static this().
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 07 Feb 2009 12:46:03 +0000
parents 4084f07f2c7a
children e785e98d3b78
comparison
equal deleted inserted replaced
136:4084f07f2c7a 137:9f035cd139c6
28 private Logger logger; 28 private Logger logger;
29 static this() { 29 static this() {
30 logger = Log.getLogger ("mde.file.mergetag.MTTagWriter"); 30 logger = Log.getLogger ("mde.file.mergetag.MTTagWriter");
31 } 31 }
32 32
33 MTTagWriter makeMTTagWriter (char[] path) { 33 MTTagWriter getMTTagWriter (char[] path) {
34 if (path.length > 4 && path[$-4..$] == ".mtt") 34 if (path.length > 4 && path[$-4..$] == ".mtt")
35 return new MTTTagWriter (path); 35 return new MTTTagWriter (path);
36 else if (path.length > 4 && path[$-4..$] == ".mtb") 36 else if (path.length > 4 && path[$-4..$] == ".mtb")
37 return new MTBTagWriter (path); 37 return new MTBTagWriter (path);
38 else { 38 else {