Mercurial > projects > mde
diff mde/mde.d @ 53:f000d6cd0f74
Changes to paths, command line arguments and font LCD rendering.
Use "./" instead of "" as default install dir on windows.
Implemented a command-line argument parser.
Changes to LCD filter/render-mode option handling after testing what actually happens.
Changed some FontTexture messages and internals.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 05 Jun 2008 17:16:52 +0100 |
parents | 0fd51d2c6c8a |
children | 66d555da083e |
line wrap: on
line diff
--- a/mde/mde.d Mon Jun 02 14:34:24 2008 +0100 +++ b/mde/mde.d Thu Jun 05 17:16:52 2008 +0100 @@ -36,11 +36,10 @@ import tango.time.Clock; // Clock.now() import tango.util.log.Log : Log, Logger; -int main() +int main(char[][] args) { //BEGIN Initialisation Logger logger = Log.getLogger ("mde.mde"); - logger.info ("Starting mde..."); // Create instances now, so they can be used during init (if necessary) input = new Input(); @@ -48,7 +47,7 @@ scope Init init; try { - init = new Init(); // initialisation + init = new Init(args); // initialisation } catch (InitException e) { logger.fatal ("Initialisation failed: " ~ e.msg); return 1;