Browse Source

Added storage filesystem operations to the exported function list

Sam Lantinga 1 year ago
parent
commit
9153287fa0
3 changed files with 15 additions and 0 deletions
  1. 5 0
      src/dynapi/SDL_dynapi.sym
  2. 5 0
      src/dynapi/SDL_dynapi_overrides.h
  3. 5 0
      src/dynapi/SDL_dynapi_procs.h

+ 5 - 0
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: *;
 };

+ 5 - 0
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

+ 5 - 0
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)