pal_config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef PAL_CONFIG_H
  2. # define PAL_CONFIG_H
  3. #if defined (__SYMBIAN32__)
  4. #undef _WIN32
  5. #undef SDL_INIT_JOYSTICK
  6. #define SDL_INIT_JOYSTICK 0
  7. #define PAL_HAS_MOUSE 1
  8. #define PAL_PREFIX "e:/data/pal/"
  9. #define PAL_SAVE_PREFIX "e:/data/pal/"
  10. # ifdef __S60_5X__
  11. # define PAL_DEFAULT_WINDOW_WIDTH 640
  12. # define PAL_DEFAULT_WINDOW_HEIGHT 360
  13. # else
  14. # define PAL_DEFAULT_WINDOW_WIDTH 320
  15. # define PAL_DEFAULT_WINDOW_HEIGHT 240
  16. # endif
  17. # if SDL_VERSION_ATLEAST(2,0,0)
  18. # define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE)
  19. # else
  20. # define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
  21. # define PAL_FATAL_OUTPUT(s) UTIL_WriteLog(LOG_DEBUG,"[0x%08x][%s][%s] - %s",(long)TerminateOnError,"TerminateOnError",__FILE__, (s)); SDL_Delay(3000)
  22. # endif
  23. # define PAL_SDL_INIT_FLAGS (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_CDROM | SDL_INIT_NOPARACHUTE | SDL_INIT_JOYSTICK)
  24. # define PAL_PLATFORM " Symbian S60 \x79FB\x690D (c) 2009, netwan."
  25. # define PAL_CREDIT "netwan"
  26. # define PAL_PORTYEAR "2009"
  27. # define PAL_LARGE static
  28. # define PAL_FORCE_UPDATE_ON_PALETTE_SET
  29. # if !defined (__S60_5X__)
  30. # define PAL_SCALE_SCREEN FALSE
  31. # endif
  32. #elif defined(NDS)
  33. #define PAL_PREFIX "./"
  34. #define PAL_SAVE_PREFIX "./"
  35. # define PAL_DEFAULT_WINDOW_WIDTH 293
  36. # define PAL_DEFAULT_WINDOW_HEIGHT 196
  37. # if SDL_VERSION_ATLEAST(2,0,0)
  38. # define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
  39. # else
  40. # define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | SDL_FULLSCREEN)
  41. # endif
  42. # define PAL_SDL_INIT_FLAGS (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_CDROM | SDL_INIT_NOPARACHUTE | SDL_INIT_JOYSTICK)
  43. # define PAL_PLATFORM "Nintendo DS"
  44. # define PAL_CREDIT "(Unknown)"
  45. # define PAL_PORTYEAR "2012"
  46. #endif
  47. #endif