diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-02-13 12:02:37 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-02-13 12:02:37 +0100 |
| commit | 23709c09c7245272f3963f8fef457b67249c110d (patch) | |
| tree | d1df549c75dc9fd04a15a4699c99633e4f4a1769 /src/include/sdl2rwops.h | |
| parent | 547b97d4cb6d06104dc104458ac48fd91bca5e41 (diff) | |
| download | box64-23709c09c7245272f3963f8fef457b67249c110d.tar.gz box64-23709c09c7245272f3963f8fef457b67249c110d.zip | |
Added some code to detect if emulted program use old IMG_SavePNG_RW api instead of current one
Diffstat (limited to 'src/include/sdl2rwops.h')
| -rwxr-xr-x | src/include/sdl2rwops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/sdl2rwops.h b/src/include/sdl2rwops.h index a049f80b..f03f17c2 100755 --- a/src/include/sdl2rwops.h +++ b/src/include/sdl2rwops.h @@ -22,6 +22,7 @@ typedef struct SDL2RWSave_s { 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 int64_t RWNativeSeek2(SDL2_RWops_t *ops, int64_t offset, int32_t whence); uint32_t RWNativeRead2(SDL2_RWops_t* ops, void* ptr, uint32_t size, uint32_t maxnum); |