37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
|
local changes for emsdk
|
||
|
|
||
|
--- a/src/Makefile
|
||
|
+++ b/src/Makefile
|
||
|
@@ -51,7 +51,7 @@
|
||
|
# Define required environment variables
|
||
|
#------------------------------------------------------------------------------------------------
|
||
|
# Define target platform: PLATFORM_DESKTOP, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB
|
||
|
-PLATFORM ?= PLATFORM_DESKTOP
|
||
|
+PLATFORM ?= PLATFORM_WEB
|
||
|
|
||
|
# Define required raylib variables
|
||
|
RAYLIB_VERSION = 5.0.0
|
||
|
--- a/src/config.h
|
||
|
+++ b/src/config.h
|
||
|
@@ -59,7 +59,7 @@
|
||
|
// Use a partial-busy wait loop, in this case frame sleeps for most of the time, but then runs a busy loop at the end for accuracy
|
||
|
#define SUPPORT_PARTIALBUSY_WAIT_LOOP 1
|
||
|
// Allow automatic screen capture of current screen pressing F12, defined in KeyCallback()
|
||
|
-#define SUPPORT_SCREEN_CAPTURE 1
|
||
|
+//#define SUPPORT_SCREEN_CAPTURE 1
|
||
|
// Allow automatic gif recording of current screen pressing CTRL+F12, defined in KeyCallback()
|
||
|
#define SUPPORT_GIF_RECORDING 1
|
||
|
// Support CompressData() and DecompressData() functions
|
||
|
--- a/src/rcore.c
|
||
|
+++ b/src/rcore.c
|
||
|
@@ -349,9 +349,7 @@ RLAPI const char *raylib_version = RAYLIB_VERSION; // raylib version exported s
|
||
|
|
||
|
CoreData CORE = { 0 }; // Global CORE state context
|
||
|
|
||
|
-#if defined(SUPPORT_SCREEN_CAPTURE)
|
||
|
static int screenshotCounter = 0; // Screenshots counter
|
||
|
-#endif
|
||
|
|
||
|
#if defined(SUPPORT_GIF_RECORDING)
|
||
|
int gifFrameCounter = 0; // GIF frames counter
|