Skip to content

Commit 65e10d6

Browse files
author
Semphris
committed
Add dynapi bindings for temp files
1 parent 55ff7a0 commit 65e10d6

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/dynapi/SDL_dynapi.sym

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,9 @@ SDL3_0.0.0 {
11861186
SDL_CancelGPUCommandBuffer;
11871187
SDL_SaveFile_IO;
11881188
SDL_SaveFile;
1189+
SDL_CreateSafeTempFile;
1190+
SDL_CreateUnsafeTempFile;
1191+
SDL_CreateTempFolder;
11891192
# extra symbols go here (don't modify this line)
11901193
local: *;
11911194
};

src/dynapi/SDL_dynapi_overrides.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,3 +1211,6 @@
12111211
#define SDL_CancelGPUCommandBuffer SDL_CancelGPUCommandBuffer_REAL
12121212
#define SDL_SaveFile_IO SDL_SaveFile_IO_REAL
12131213
#define SDL_SaveFile SDL_SaveFile_REAL
1214+
#define SDL_CreateSafeTempFile SDL_CreateSafeTempFile_REAL
1215+
#define SDL_CreateUnsafeTempFile SDL_CreateUnsafeTempFile_REAL
1216+
#define SDL_CreateTempFolder SDL_CreateTempFolder_REAL

src/dynapi/SDL_dynapi_procs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,3 +1217,6 @@ SDL_DYNAPI_PROC(SDL_Sandbox,SDL_GetSandbox,(void),(),return)
12171217
SDL_DYNAPI_PROC(bool,SDL_CancelGPUCommandBuffer,(SDL_GPUCommandBuffer *a),(a),return)
12181218
SDL_DYNAPI_PROC(bool,SDL_SaveFile_IO,(SDL_IOStream *a,const void *b,size_t c,bool d),(a,b,c,d),return)
12191219
SDL_DYNAPI_PROC(bool,SDL_SaveFile,(const char *a,const void *b,size_t c),(a,b,c),return)
1220+
SDL_DYNAPI_PROC(SDL_IOStream*,SDL_CreateSafeTempFile,(void),(),return)
1221+
SDL_DYNAPI_PROC(char*,SDL_CreateUnsafeTempFile,(void),(),return)
1222+
SDL_DYNAPI_PROC(char*,SDL_CreateTempFolder,(void),(),return)

0 commit comments

Comments
 (0)