pal_config.h 755 B

12345678910111213141516171819202122232425262728
  1. #ifndef PAL_CONFIG_H
  2. # define PAL_CONFIG_H
  3. # include <emscripten.h>
  4. # define SDL_Delay emscripten_sleep
  5. # define PAL_PREFIX "data/"
  6. # define PAL_SAVE_PREFIX "data/"
  7. # define PAL_HAS_TOUCH 0
  8. # define PAL_DEFAULT_WINDOW_WIDTH 320
  9. # define PAL_DEFAULT_WINDOW_HEIGHT 200
  10. # if SDL_VERSION_ATLEAST(2,0,0)
  11. # define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
  12. # else
  13. # define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_FULLSCREEN)
  14. # endif
  15. #define PAL_SDL_INIT_FLAGS (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_CDROM | SDL_INIT_NOPARACHUTE | SDL_INIT_JOYSTICK)
  16. # define PAL_PLATFORM "Emscripten"
  17. # define PAL_CREDIT "palxex"
  18. # define PAL_PORTYEAR "2016"
  19. # include <ctype.h>
  20. # include <sys/time.h>
  21. #endif