updated Makefile.psp and SDL_config_psp.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
diff --git a/Makefile.psp b/Makefile.psp
index 20c22d6..8e826dc 100644
--- a/Makefile.psp
+++ b/Makefile.psp
@@ -1,3 +1,6 @@
+# The threads code require a rather new PSP SDK with SceLwMutexWorkarea:
+# https://github.com/pspdev/pspsdk/commit/276d9e3ca6fb26479ad050c21431b2a40f518365
+#
TARGET_LIB = libSDL2.a
EXTRA_TARGETS = libSDL2main.a
OBJS= src/SDL.o \
@@ -36,7 +39,7 @@ OBJS= src/SDL.o \
src/joystick/virtual/SDL_virtualjoystick.o \
src/power/SDL_power.o \
src/power/psp/SDL_syspower.o \
- src/filesystem/dummy/SDL_sysfilesystem.o \
+ src/filesystem/psp/SDL_sysfilesystem.o \
src/locale/SDL_locale.o \
src/locale/dummy/SDL_syslocale.o \
src/misc/SDL_url.o \
diff --git a/include/SDL_config_psp.h b/include/SDL_config_psp.h
index b153476..72c1eb6 100644
--- a/include/SDL_config_psp.h
+++ b/include/SDL_config_psp.h
@@ -25,8 +25,6 @@
#include "SDL_platform.h"
-
-
#ifdef __GNUC__
#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
#endif
@@ -34,7 +32,7 @@
#define HAVE_GCC_ATOMICS 1
#define STDC_HEADERS 1
-#define HAVE_ALLOCA_H 1
+#define HAVE_ALLOCA_H 1
#define HAVE_CTYPE_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_LIMITS_H 1
@@ -152,8 +150,8 @@
#define SDL_POWER_PSP 1
-/* !!! FIXME: what does PSP do for filesystem stuff? */
-#define SDL_FILESYSTEM_DUMMY 1
+/* Enable the PSP filesystem support (src/filesystem/psp/\*.c) */
+#define SDL_FILESYSTEM_PSP 1
/* PSP doesn't have haptic device (src/haptic/dummy/\*.c) */
#define SDL_HAPTIC_DISABLED 1
@@ -164,5 +162,4 @@
/* PSP can't load shared object (src/loadso/dummy/\*.c) */
#define SDL_LOADSO_DISABLED 1
-
#endif /* SDL_config_psp_h_ */