about summary refs log tree commit diff stats
path: root/src/include/sdl2rwops.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-30 17:41:47 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-30 17:41:47 +0200
commit2b0c8d45faa03b31802b797df2094add702dc20c (patch)
tree1eb0d67ee6782a0e02a2f9d36d290894d8ef0d6f /src/include/sdl2rwops.h
parentc88cf6359e4968bd5449c85f2ca7890f2b0c473f (diff)
downloadbox64-2b0c8d45faa03b31802b797df2094add702dc20c.tar.gz
box64-2b0c8d45faa03b31802b797df2094add702dc20c.zip
[BOX32][WRAPPER] Added 32bits wrapping for SDL2_image
Diffstat (limited to 'src/include/sdl2rwops.h')
-rw-r--r--src/include/sdl2rwops.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/sdl2rwops.h b/src/include/sdl2rwops.h
index 72ead1c3..bdc54a99 100644
--- a/src/include/sdl2rwops.h
+++ b/src/include/sdl2rwops.h
@@ -2,6 +2,9 @@
 #define __SDL2RWOPS_H__
 
 typedef struct SDL2_RWops_s SDL2_RWops_t;   // the actual SDL2 SDL_RWops
+#ifdef BOX32
+typedef struct my_SDL2_RWops_32_s my_SDL2_RWops_32_t;
+#endif
 typedef struct x64emu_s x64emu_t;
 
 typedef SDL2_RWops_t* (*sdl2_allocrw)(void);
@@ -23,6 +26,9 @@ SDL2_RWops_t* AddNativeRW2(x64emu_t* emu, SDL2_RWops_t* ops);
 SDL2_RWops_t* RWNativeStart2(x64emu_t* emu, SDL2_RWops_t* ops); // put native RW functions, wrapping the emulated (callback style) ones if needed
 void RWNativeEnd2(SDL2_RWops_t* ops);                           // put emulated function back in place
 int isRWops(SDL2_RWops_t* ops); // 1 if ops seems to be a valid RWops, 0 if not
+#ifdef BOX32
+int isRWops32(my_SDL2_RWops_32_t* ops);
+#endif
 
 int64_t RWNativeSeek2(SDL2_RWops_t *ops, int64_t offset, int32_t whence);
 int64_t RWNativeSize2(SDL2_RWops_t *ops);