Renamed storage functions to match SDL 3.0 naming convention
This commit is contained in:
@@ -984,9 +984,9 @@ SDL3_0.0.0 {
|
||||
SDL_OpenStorage;
|
||||
SDL_CloseStorage;
|
||||
SDL_StorageReady;
|
||||
SDL_StorageFileSize;
|
||||
SDL_StorageReadFile;
|
||||
SDL_StorageSpaceRemaining;
|
||||
SDL_GetStorageFileSize;
|
||||
SDL_ReadStorageFile;
|
||||
SDL_GetStorageSpaceRemaining;
|
||||
# extra symbols go here (don't modify this line)
|
||||
local: *;
|
||||
};
|
||||
|
||||
@@ -1009,6 +1009,6 @@
|
||||
#define SDL_OpenStorage SDL_OpenStorage_REAL
|
||||
#define SDL_CloseStorage SDL_CloseStorage_REAL
|
||||
#define SDL_StorageReady SDL_StorageReady_REAL
|
||||
#define SDL_StorageFileSize SDL_StorageFileSize_REAL
|
||||
#define SDL_StorageReadFile SDL_StorageReadFile_REAL
|
||||
#define SDL_StorageSpaceRemaining SDL_StorageSpaceRemaining_REAL
|
||||
#define SDL_GetStorageFileSize SDL_GetStorageFileSize_REAL
|
||||
#define SDL_ReadStorageFile SDL_ReadStorageFile_REAL
|
||||
#define SDL_GetStorageSpaceRemaining SDL_GetStorageSpaceRemaining_REAL
|
||||
|
||||
@@ -1034,6 +1034,6 @@ SDL_DYNAPI_PROC(SDL_Storage*,SDL_OpenUserStorage,(const char *a, const char *b,
|
||||
SDL_DYNAPI_PROC(SDL_Storage*,SDL_OpenStorage,(const SDL_StorageInterface *a, void *b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_CloseStorage,(SDL_Storage *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_StorageReady,(SDL_Storage *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_StorageFileSize,(SDL_Storage *a, const char *b, Uint64 *c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_StorageReadFile,(SDL_Storage *a, const char *b, void *c, Uint64 d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(Uint64,SDL_StorageSpaceRemaining,(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)
|
||||
|
||||
@@ -180,14 +180,14 @@ SDL_bool SDL_StorageReady(SDL_Storage *storage)
|
||||
return storage->iface.ready(storage->userdata);
|
||||
}
|
||||
|
||||
int SDL_StorageFileSize(SDL_Storage *storage, const char *path, Uint64 *length)
|
||||
int SDL_GetStorageFileSize(SDL_Storage *storage, const char *path, Uint64 *length)
|
||||
{
|
||||
CHECK_STORAGE_MAGIC()
|
||||
|
||||
return storage->iface.fileSize(storage->userdata, path, length);
|
||||
}
|
||||
|
||||
int SDL_StorageReadFile(SDL_Storage *storage, const char *path, void *destination, Uint64 length)
|
||||
int SDL_ReadStorageFile(SDL_Storage *storage, const char *path, void *destination, Uint64 length)
|
||||
{
|
||||
CHECK_STORAGE_MAGIC()
|
||||
|
||||
@@ -198,7 +198,7 @@ int SDL_StorageReadFile(SDL_Storage *storage, const char *path, void *destinatio
|
||||
return storage->iface.readFile(storage->userdata, path, destination, length);
|
||||
}
|
||||
|
||||
int SDL_StorageWriteFile(SDL_Storage *storage, const char *path, const void *source, Uint64 length)
|
||||
int SDL_WriteStorageFile(SDL_Storage *storage, const char *path, const void *source, Uint64 length)
|
||||
{
|
||||
CHECK_STORAGE_MAGIC()
|
||||
|
||||
@@ -209,7 +209,7 @@ int SDL_StorageWriteFile(SDL_Storage *storage, const char *path, const void *sou
|
||||
return storage->iface.writeFile(storage->userdata, path, source, length);
|
||||
}
|
||||
|
||||
Uint64 SDL_StorageSpaceRemaining(SDL_Storage *storage)
|
||||
Uint64 SDL_GetStorageSpaceRemaining(SDL_Storage *storage)
|
||||
{
|
||||
CHECK_STORAGE_MAGIC_RET(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user