|
@@ -250,6 +250,27 @@ extern "C"
|
|
|
# define PAL_CREDIT "(Unknown)"
|
|
|
# define PAL_PORTYEAR "2015"
|
|
|
|
|
|
+#elif defined (__EMSCRIPTEN__)
|
|
|
+
|
|
|
+#include <emscripten.h>
|
|
|
+#define SDL_Delay emscripten_sleep
|
|
|
+
|
|
|
+#define PAL_PREFIX "data/"
|
|
|
+#define PAL_SAVE_PREFIX "data/"
|
|
|
+#define PAL_HAS_TOUCH 0
|
|
|
+#define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
+#define PAL_DEFAULT_WINDOW_HEIGHT 200
|
|
|
+
|
|
|
+# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
+# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
|
|
|
+# else
|
|
|
+# define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_FULLSCREEN)
|
|
|
+# endif
|
|
|
+
|
|
|
+# define PAL_PLATFORM "Emscripten"
|
|
|
+# define PAL_CREDIT "palxex"
|
|
|
+# define PAL_PORTYEAR "2016"
|
|
|
+
|
|
|
#else
|
|
|
|
|
|
# ifndef PAL_HAS_JOYSTICKS
|