71 |
python::init (); |
python::init (); |
72 |
PySys_SetArgv (Argc, Argv); |
PySys_SetArgv (Argc, Argv); |
73 |
} |
} |
74 |
|
// avoid shutting down Python in that case |
75 |
else |
else |
76 |
{ |
{ |
77 |
Modules -= PYTHON; |
Modules -= PYTHON; |
162 |
cerr << "Error initializing liblt!" << endl; |
cerr << "Error initializing liblt!" << endl; |
163 |
return false; |
return false; |
164 |
} |
} |
165 |
|
|
166 |
|
// init base module (required for reading config file) |
167 |
|
base::init (Userdatadir, Game); |
168 |
|
|
169 |
// load configuration file |
// load configuration file |
170 |
if (!Cfg.read (Config)) |
if (!Cfg.read (Config)) |
171 |
{ |
{ |
198 |
return false; |
return false; |
199 |
} |
} |
200 |
|
|
|
// init base module |
|
|
base::init (Userdatadir, Game); |
|
|
|
|
201 |
// platform / backend specific initialization |
// platform / backend specific initialization |
202 |
return init_p (this); |
return init_p (this); |
203 |
} |
} |