From 21914b4e2f562fd7b8f08fc4f4d61d01a2c509ad Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 8 Jan 2022 11:55:10 +0300 Subject: [PATCH] updated Makefile.psp and SDL_config_psp.h --- Makefile.psp | 5 ++++- include/SDL_config_psp.h | 9 +++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile.psp b/Makefile.psp index 20c22d664..8e826dce0 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 b153476c8..72c1eb668 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_ */