From 9153287fa03b9ef736d832b047a76a8fadcba772 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 17 Mar 2024 13:02:35 -0700 Subject: [PATCH] Added storage filesystem operations to the exported function list --- src/dynapi/SDL_dynapi.sym | 5 +++++ src/dynapi/SDL_dynapi_overrides.h | 5 +++++ src/dynapi/SDL_dynapi_procs.h | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/dynapi/SDL_dynapi.sym b/src/dynapi/SDL_dynapi.sym index 7adf424b5..c95e658c3 100644 --- a/src/dynapi/SDL_dynapi.sym +++ b/src/dynapi/SDL_dynapi.sym @@ -994,6 +994,11 @@ SDL3_0.0.0 { SDL_GetPathInfo; SDL_FileTimeToWindows; SDL_OpenFileStorage; + SDL_CreateStorageDirectory; + SDL_EnumerateStorageDirectory; + SDL_RemoveStoragePath; + SDL_RenameStoragePath; + SDL_GetStoragePathInfo; # extra symbols go here (don't modify this line) local: *; }; diff --git a/src/dynapi/SDL_dynapi_overrides.h b/src/dynapi/SDL_dynapi_overrides.h index 40bef31e0..f31ea6a32 100644 --- a/src/dynapi/SDL_dynapi_overrides.h +++ b/src/dynapi/SDL_dynapi_overrides.h @@ -1019,3 +1019,8 @@ #define SDL_GetPathInfo SDL_GetPathInfo_REAL #define SDL_FileTimeToWindows SDL_FileTimeToWindows_REAL #define SDL_OpenFileStorage SDL_OpenFileStorage_REAL +#define SDL_CreateStorageDirectory SDL_CreateStorageDirectory_REAL +#define SDL_EnumerateStorageDirectory SDL_EnumerateStorageDirectory_REAL +#define SDL_RemoveStoragePath SDL_RemoveStoragePath_REAL +#define SDL_RenameStoragePath SDL_RenameStoragePath_REAL +#define SDL_GetStoragePathInfo SDL_GetStoragePathInfo_REAL diff --git a/src/dynapi/SDL_dynapi_procs.h b/src/dynapi/SDL_dynapi_procs.h index 6f7d95757..9202049c4 100644 --- a/src/dynapi/SDL_dynapi_procs.h +++ b/src/dynapi/SDL_dynapi_procs.h @@ -1044,3 +1044,8 @@ SDL_DYNAPI_PROC(int,SDL_RenamePath,(const char *a, const char *b),(a,b),return) SDL_DYNAPI_PROC(int,SDL_GetPathInfo,(const char *a, SDL_PathInfo *b),(a,b),return) SDL_DYNAPI_PROC(void,SDL_FileTimeToWindows,(Sint64 a, Uint32 *b, Uint32 *c),(a,b,c),) SDL_DYNAPI_PROC(SDL_Storage*,SDL_OpenFileStorage,(const char *a),(a),return) +SDL_DYNAPI_PROC(int,SDL_CreateStorageDirectory,(SDL_Storage *a, const char *b),(a,b),return) +SDL_DYNAPI_PROC(int,SDL_EnumerateStorageDirectory,(SDL_Storage *a, const char *b, SDL_EnumerateDirectoryCallback c, void *d),(a,b,c,d),return) +SDL_DYNAPI_PROC(int,SDL_RemoveStoragePath,(SDL_Storage *a, const char *b),(a,b),return) +SDL_DYNAPI_PROC(int,SDL_RenameStoragePath,(SDL_Storage *a, const char *b, const char *c),(a,b,c),return) +SDL_DYNAPI_PROC(int,SDL_GetStoragePathInfo,(SDL_Storage *a, const char *b, SDL_PathInfo *c),(a,b,c),return)