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 { |
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 |
|
|