correction.
[AROS-Ports.git] / game / vectoroids / vectoroids-1.1.0-aros.diff
blob4cc25ee8f5a5bf10d6c311c852c4ef0f2432216f
1 diff -Naur vectoroids-1.1.0-orig/vectoroids.c vectoroids-1.1.0/vectoroids.c
2 --- vectoroids-1.1.0-orig/vectoroids.c 2016-12-28 09:14:41.266746328 +0100
3 +++ vectoroids-1.1.0/vectoroids.c 2016-12-28 09:09:10.194916878 +0100
4 @@ -75,7 +75,9 @@
8 +#ifndef TRUE
9 enum { FALSE, TRUE };
10 +#endif
12 #define LEFT_EDGE 0x0001
13 #define RIGHT_EDGE 0x0002
14 @@ -593,7 +595,9 @@
16 /* Load state from disk: */
18 -#ifndef _WIN32
19 +#if defined(__AROS__)
20 + strcpy(statefile, "PROGDIR:.vectoroids-state");
21 +#elif !defined(_WIN32)
22 /* snprintf(statefile, sizeof(statefile), "%s/.vectoroids-state",
23 getenv("HOME")); */
24 sprintf(statefile, "%s/.vectoroids-state",
25 @@ -1946,7 +1950,7 @@
27 /* Init SDL video: */
29 - if (SDL_Init(SDL_INIT_VIDEO) < 0)
30 + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0)
32 fprintf(stderr,
33 "\nError: I could not initialize video!\n"
34 @@ -1955,6 +1959,7 @@
35 exit(1);
38 + atexit(SDL_Quit);
40 /* Init joysticks: */
42 @@ -2159,7 +2164,7 @@
43 "%s\n"
44 "The Simple DirectMedia error that occured was:\n"
45 "%s\n\n", mus_game_name, SDL_GetError());
46 - exit(1);
47 + // exit(1);
50 #endif