/[enigma]/enigma/src/main.cc
ViewVC logotype

Diff of /enigma/src/main.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dheck, Thu Jan 23 22:36:04 2003 UTC revision 1.2 by dheck, Fri Jan 24 20:04:38 2003 UTC
# Line 85  static void usage() Line 85  static void usage()
85             "\n");             "\n");
86  }  }
87    
88  static void  namespace
 init()  
89  {  {
     lua::Init();  
   
     // Run initialization scripts  
     lua::Dofile("init.lua");  
     lua::Dofile("levels/index.lua");  
       
     // Load preferences  
     if (!options::Load())  
     {  
         fprintf(stderr, "Error in configuration file.\n");  
     }  
   
     /*  
     ** Evaluate command line arguments.  
     */  
90      struct AP : public argp::ArgParser {      struct AP : public argp::ArgParser {
91      public:      public:
92          enum {          enum {
# Line 167  init() Line 151  init()
151          string gamename;          string gamename;
152          GameType gametype;          GameType gametype;
153      };      };
154    }
155    
156    static void
157    init()
158    {
159        lua::Init();
160    
161        // Run initialization scripts
162        lua::Dofile("init.lua");
163        lua::Dofile("levels/index.lua");
164        
165        // Load preferences
166        if (!options::Load())
167        {
168            fprintf(stderr, "Error in configuration file.\n");
169        }
170    
171        /*
172        ** Evaluate command line arguments.
173        */
174      AP ap;      AP ap;
175      ap.parse();      ap.parse();
176    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26