]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/include/SDLptc.h
Virtual Jaguar 1.0.4 update (Shamus)
[virtualjaguar] / src / include / SDLptc.h
index 163421bcab6243570665e6d9a865a768ae580dda..c7f366b49d4e37c6285bdaae189e688d81294d19 100644 (file)
 #define __SDLPTC_H__
 
 #include "SDL.h"
-#ifdef __PORT__
 #include <string.h>
 #include <stdlib.h>
-#endif // #ifdef __PORT__
-
 #include "types.h"
 
-#ifndef __PORT__
-#define randomize()    srand(time(NULL))
-#define random(max)    (rand() % (max))
-#endif // #ifndef __PORT__
 
 class Error
 {
@@ -199,7 +192,8 @@ class Console: public Surface
                {
                        Uint32 flags = SDL_SWSURFACE;
 
-                       if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0)
+//Testing                      if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0)
+                       if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_NOPARACHUTE) < 0)
                                throw Error(SDL_GetError());
 
                    const SDL_VideoInfo * info = SDL_GetVideoInfo(); // Let us get proper info about the platform.
@@ -255,4 +249,4 @@ class Console: public Surface
                int nJoystick;
 };
 
-#endif // #ifndef __SDLPTC_H__
+#endif // __SDLPTC_H__