Adonthell  0.4
main.cc File Reference

Contains the main() function. More...

#include "achievements.h"
#include "audio.h"
#include "event_handler.h"
#include "game.h"
#include "gamedata.h"
#include "gametime.h"
#include "input.h"
#include "nls.h"
#include "python_class.h"
#include "screen.h"
#include "yarg.h"
#include "win_manager.h"
Include dependency graph for main.cc:

Go to the source code of this file.

Functions

void init_adonthell (void)
 SWIG init prototype. More...
 
static bool init_python (const char *application)
 
int main (int argc, char *argv[])
 Game's main function. More...
 

Detailed Description

Contains the main() function.

Author
Kai Sterker kai.s.nosp@m.terk.nosp@m.er@gm.nosp@m.ail..nosp@m.com

Definition in file main.cc.

Function Documentation

void init_adonthell ( void  )

SWIG init prototype.

int main ( int  argc,
char *  argv[] 
)

Game's main function.

It simply initialises the game and runs the "init.py" file in the game directory given as first argument. Once the execution is finished, it cleans everything up, and exits.

Parameters
argcNumber of arguments to the program.
argvArray of strings containing the program's arguments.
Returns
0 in case of success, error code otherwise.

Definition at line 124 of file main.cc.