misc/wrapper.c
changeset 4927 95d1c90a626b
parent 4926 f9a13dd16f01
child 4930 5d59bb58c365
equal deleted inserted replaced
4926:f9a13dd16f01 4927:95d1c90a626b
    12 
    12 
    13 int SDL_main (int argc, const char **argv)
    13 int SDL_main (int argc, const char **argv)
    14 {
    14 {
    15     // Note: if you get a segfault or other unexpected crashes on startup
    15     // Note: if you get a segfault or other unexpected crashes on startup
    16     // make sure that these arguments are up-to-date with the ones actual needed
    16     // make sure that these arguments are up-to-date with the ones actual needed
    17 
       
    18     // Note: Data dir is expected to be in current working directory
       
    19 
    17 
    20     const char **gameArgs = (const char**) malloc(sizeof(char *) * 11);
    18     const char **gameArgs = (const char**) malloc(sizeof(char *) * 11);
    21 
    19 
    22     gameArgs[ 0] = "0";          //ipcPort
    20     gameArgs[ 0] = "0";          //ipcPort
    23     gameArgs[ 1] = "1024";       //cScreenWidth
    21     gameArgs[ 1] = "1024";       //cScreenWidth