equal
deleted
inserted
replaced
10 #import <stdlib.h> |
10 #import <stdlib.h> |
11 |
11 |
12 extern void Game (const char **); |
12 extern void Game (const char **); |
13 |
13 |
14 int SDL_main (int argc, const char **argv) { |
14 int SDL_main (int argc, const char **argv) { |
15 |
15 |
16 const char **gameArgs = (const char**) malloc(sizeof(char *) * 9); |
16 const char **gameArgs = (const char**) malloc(sizeof(char *) * 9); |
17 |
17 |
18 gameArgs[0] = "wrapper"; //UserNick |
18 gameArgs[0] = "wrapper"; //UserNick |
19 gameArgs[1] = "0"; //ipcPort |
19 gameArgs[1] = "0"; //ipcPort |
20 gameArgs[2] = "0"; //isSoundEnabled |
20 gameArgs[2] = "0"; //isSoundEnabled |
21 gameArgs[3] = "0"; //isMusicEnabled |
21 gameArgs[3] = "0"; //isMusicEnabled |
22 gameArgs[4] = "en.txt"; //cLocaleFName |
22 gameArgs[4] = "en.txt"; //cLocaleFName |
23 gameArgs[5] = "0"; //cAltDamage |
23 gameArgs[5] = "0"; //cAltDamage |
24 gameArgs[6] = "768"; //cScreenHeight |
24 gameArgs[6] = "768"; //cScreenHeight |
25 gameArgs[7] = "1024"; //cScreenHeight |
25 gameArgs[7] = "1024"; //cScreenHeight |
26 gameArgs[8] = "Save.hws"; //recordFileName |
26 gameArgs[8] = "Save.hws"; //recordFileName |
27 |
27 |
28 Game(gameArgs); |
28 Game(gameArgs); |
29 free(gameArgs); |
29 free(gameArgs); |
30 |
30 |
31 return 0; |
31 return 0; |
32 } |
32 } |