Added portable file and directory operations (thanks @icculus!)
This commit is contained in:
parent
fe5c34d4bd
commit
db0c1d7aeb
30 changed files with 841 additions and 2 deletions
|
@ -987,6 +987,12 @@ SDL3_0.0.0 {
|
|||
SDL_GetStorageFileSize;
|
||||
SDL_ReadStorageFile;
|
||||
SDL_GetStorageSpaceRemaining;
|
||||
SDL_CreateDirectory;
|
||||
SDL_EnumerateDirectory;
|
||||
SDL_RemovePath;
|
||||
SDL_RenamePath;
|
||||
SDL_GetPathInfo;
|
||||
SDL_FileTimeToWindows;
|
||||
# extra symbols go here (don't modify this line)
|
||||
local: *;
|
||||
};
|
||||
|
|
|
@ -1012,3 +1012,9 @@
|
|||
#define SDL_GetStorageFileSize SDL_GetStorageFileSize_REAL
|
||||
#define SDL_ReadStorageFile SDL_ReadStorageFile_REAL
|
||||
#define SDL_GetStorageSpaceRemaining SDL_GetStorageSpaceRemaining_REAL
|
||||
#define SDL_CreateDirectory SDL_CreateDirectory_REAL
|
||||
#define SDL_EnumerateDirectory SDL_EnumerateDirectory_REAL
|
||||
#define SDL_RemovePath SDL_RemovePath_REAL
|
||||
#define SDL_RenamePath SDL_RenamePath_REAL
|
||||
#define SDL_GetPathInfo SDL_GetPathInfo_REAL
|
||||
#define SDL_FileTimeToWindows SDL_FileTimeToWindows_REAL
|
||||
|
|
|
@ -1037,3 +1037,9 @@ SDL_DYNAPI_PROC(SDL_bool,SDL_StorageReady,(SDL_Storage *a),(a),return)
|
|||
SDL_DYNAPI_PROC(int,SDL_GetStorageFileSize,(SDL_Storage *a, const char *b, Uint64 *c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_ReadStorageFile,(SDL_Storage *a, const char *b, void *c, Uint64 d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(Uint64,SDL_GetStorageSpaceRemaining,(SDL_Storage *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_CreateDirectory,(const char *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_EnumerateDirectory,(const char *a, SDL_EnumerateDirectoryCallback b, void *c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_RemovePath,(const char *a),(a),return)
|
||||
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),)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue