Skip to content

Commit

Permalink
Add dynapi bindings for temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
Semphris committed Nov 24, 2024
1 parent 55ff7a0 commit 65e10d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dynapi/SDL_dynapi.sym
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,9 @@ SDL3_0.0.0 {
SDL_CancelGPUCommandBuffer;
SDL_SaveFile_IO;
SDL_SaveFile;
SDL_CreateSafeTempFile;
SDL_CreateUnsafeTempFile;
SDL_CreateTempFolder;
# extra symbols go here (don't modify this line)
local: *;
};
3 changes: 3 additions & 0 deletions src/dynapi/SDL_dynapi_overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -1211,3 +1211,6 @@
#define SDL_CancelGPUCommandBuffer SDL_CancelGPUCommandBuffer_REAL
#define SDL_SaveFile_IO SDL_SaveFile_IO_REAL
#define SDL_SaveFile SDL_SaveFile_REAL
#define SDL_CreateSafeTempFile SDL_CreateSafeTempFile_REAL
#define SDL_CreateUnsafeTempFile SDL_CreateUnsafeTempFile_REAL
#define SDL_CreateTempFolder SDL_CreateTempFolder_REAL
3 changes: 3 additions & 0 deletions src/dynapi/SDL_dynapi_procs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1217,3 +1217,6 @@ SDL_DYNAPI_PROC(SDL_Sandbox,SDL_GetSandbox,(void),(),return)
SDL_DYNAPI_PROC(bool,SDL_CancelGPUCommandBuffer,(SDL_GPUCommandBuffer *a),(a),return)
SDL_DYNAPI_PROC(bool,SDL_SaveFile_IO,(SDL_IOStream *a,const void *b,size_t c,bool d),(a,b,c,d),return)
SDL_DYNAPI_PROC(bool,SDL_SaveFile,(const char *a,const void *b,size_t c),(a,b,c),return)
SDL_DYNAPI_PROC(SDL_IOStream*,SDL_CreateSafeTempFile,(void),(),return)
SDL_DYNAPI_PROC(char*,SDL_CreateUnsafeTempFile,(void),(),return)
SDL_DYNAPI_PROC(char*,SDL_CreateTempFolder,(void),(),return)

0 comments on commit 65e10d6

Please sign in to comment.