diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-30 18:15:07 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-30 18:15:07 +0200 |
| commit | e57aaadb1d3f44640c49f9a7aebce7d64c8dd82b (patch) | |
| tree | 01d1ad14528dcd811acc0a2fb7395c1007ed40b9 /src | |
| parent | 0d2492bfde70c85e81973c03cb076efa553d60e0 (diff) | |
| download | box64-e57aaadb1d3f44640c49f9a7aebce7d64c8dd82b.tar.gz box64-e57aaadb1d3f44640c49f9a7aebce7d64c8dd82b.zip | |
Fixed some wrapped function signature, and added a few more
Diffstat (limited to 'src')
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 2 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.c | 4 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.h | 2 | ||||
| -rwxr-xr-x | src/wrapped/wrappedlibc_private.h | 3 | ||||
| -rwxr-xr-x | src/wrapped/wrappedsdl2.c | 4 | ||||
| -rwxr-xr-x | src/wrapped/wrappedsdl2_private.h | 4 |
6 files changed, 6 insertions, 13 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 2c65437e..8fb69cca 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -618,8 +618,6 @@ #() iFEpipi #() iFEpipp #() iFEpipV -#() iFEpupp -#() iFEpupV #() iFEpLpp #() iFEpLpV #() iFEppii diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index 6b8cfe44..021a999e 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -651,8 +651,6 @@ typedef int32_t (*iFEpiii_t)(x64emu_t*, void*, int32_t, int32_t, int32_t); typedef int32_t (*iFEpipi_t)(x64emu_t*, void*, int32_t, void*, int32_t); typedef int32_t (*iFEpipp_t)(x64emu_t*, void*, int32_t, void*, void*); typedef int32_t (*iFEpipV_t)(x64emu_t*, void*, int32_t, void*, void*); -typedef int32_t (*iFEpupp_t)(x64emu_t*, void*, uint32_t, void*, void*); -typedef int32_t (*iFEpupV_t)(x64emu_t*, void*, uint32_t, void*, void*); typedef int32_t (*iFEpLpp_t)(x64emu_t*, void*, uintptr_t, void*, void*); typedef int32_t (*iFEpLpV_t)(x64emu_t*, void*, uintptr_t, void*, void*); typedef int32_t (*iFEppii_t)(x64emu_t*, void*, void*, int32_t, int32_t); @@ -1746,8 +1744,6 @@ void iFEpiii(x64emu_t *emu, uintptr_t fcn) { iFEpiii_t fn = (iFEpiii_t)fcn; R_RA void iFEpipi(x64emu_t *emu, uintptr_t fcn) { iFEpipi_t fn = (iFEpipi_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX, (int32_t)R_RCX); } void iFEpipp(x64emu_t *emu, uintptr_t fcn) { iFEpipp_t fn = (iFEpipp_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX, (void*)R_RCX); } void iFEpipV(x64emu_t *emu, uintptr_t fcn) { iFEpipV_t fn = (iFEpipV_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX, (void*)(R_RSP + 8)); } -void iFEpupp(x64emu_t *emu, uintptr_t fcn) { iFEpupp_t fn = (iFEpupp_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (uint32_t)R_RSI, (void*)R_RDX, (void*)R_RCX); } -void iFEpupV(x64emu_t *emu, uintptr_t fcn) { iFEpupV_t fn = (iFEpupV_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (uint32_t)R_RSI, (void*)R_RDX, (void*)(R_RSP + 8)); } void iFEpLpp(x64emu_t *emu, uintptr_t fcn) { iFEpLpp_t fn = (iFEpLpp_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (void*)R_RCX); } void iFEpLpV(x64emu_t *emu, uintptr_t fcn) { iFEpLpV_t fn = (iFEpLpV_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (void*)(R_RSP + 8)); } void iFEppii(x64emu_t *emu, uintptr_t fcn) { iFEppii_t fn = (iFEppii_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (void*)R_RSI, (int32_t)R_RDX, (int32_t)R_RCX); } diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h index 8fa86623..8ffc0262 100644 --- a/src/wrapped/generated/wrapper.h +++ b/src/wrapped/generated/wrapper.h @@ -648,8 +648,6 @@ void iFEpiii(x64emu_t *emu, uintptr_t fnc); void iFEpipi(x64emu_t *emu, uintptr_t fnc); void iFEpipp(x64emu_t *emu, uintptr_t fnc); void iFEpipV(x64emu_t *emu, uintptr_t fnc); -void iFEpupp(x64emu_t *emu, uintptr_t fnc); -void iFEpupV(x64emu_t *emu, uintptr_t fnc); void iFEpLpp(x64emu_t *emu, uintptr_t fnc); void iFEpLpV(x64emu_t *emu, uintptr_t fnc); void iFEppii(x64emu_t *emu, uintptr_t fnc); diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h index d96ace4a..b18b1781 100755 --- a/src/wrapped/wrappedlibc_private.h +++ b/src/wrapped/wrappedlibc_private.h @@ -5,6 +5,7 @@ //socklen_t is u32 // typedef unsigned long int nfds_t; // key_t is S32 +// uid_t is u32 //GO(a64l, GO(abort, vFv) @@ -1651,7 +1652,7 @@ GOW(setsockopt, iFiiipu) //GOW(setstate_r, //GOW(settimeofday, //GOW(setttyent, -//GOW(setuid, +GOW(setuid, iFu) //GO(setusershell, //GOW(setutent, //GO(setutxent, diff --git a/src/wrapped/wrappedsdl2.c b/src/wrapped/wrappedsdl2.c index 7bc32984..19fb7378 100755 --- a/src/wrapped/wrappedsdl2.c +++ b/src/wrapped/wrappedsdl2.c @@ -622,7 +622,7 @@ EXPORT void my2_SDL_LogSetOutputFunction(x64emu_t* emu, void* f, void* arg) my->SDL_LogSetOutputFunction(find_LogOutput_Fct(f), arg); } -EXPORT int my2_SDL_vsnprintf(x64emu_t* emu, void* buff, uint32_t s, void * fmt, x64_va_list_t b) +EXPORT int my2_SDL_vsnprintf(x64emu_t* emu, void* buff, size_t s, void * fmt, x64_va_list_t b) { CONVERT_VALIST(b) int r = vsnprintf(buff, s, fmt, VARARGS); @@ -638,7 +638,7 @@ EXPORT void* my2_SDL_CreateThread(x64emu_t* emu, void* f, void* n, void* p) return my->SDL_CreateThread(fnc, n, et); } -EXPORT int my2_SDL_snprintf(x64emu_t* emu, void* buff, uint32_t s, void * fmt, uint64_t * b) { +EXPORT int my2_SDL_snprintf(x64emu_t* emu, void* buff, size_t s, void * fmt, uint64_t * b) { myStackAlign(emu, (const char*)fmt, b, emu->scratch, R_EAX, 3); PREPARE_VALIST; return vsnprintf(buff, s, fmt, VARARGS); diff --git a/src/wrapped/wrappedsdl2_private.h b/src/wrapped/wrappedsdl2_private.h index d2a81530..dbbae9d3 100755 --- a/src/wrapped/wrappedsdl2_private.h +++ b/src/wrapped/wrappedsdl2_private.h @@ -593,7 +593,7 @@ GO(SDL_ShowSimpleMessageBox, iFuppp) GO(SDL_ShowWindow, vFp) GO(SDL_sin, dFd) GO(SDL_sinf, fFf) -GOM(SDL_snprintf, iFEpupV) +GOM(SDL_snprintf, iFEpLpV) GO(SDL_SoftStretch, iFpppp) GO(SDL_sqrt, dFd) GO(SDL_sqrtf, fFf) @@ -649,7 +649,7 @@ GO(SDL_utf8strlcpy, uFppu) // SDL_utf8strlen GO(SDL_VideoInit, iFp) GO(SDL_VideoQuit, vFv) -GOM(SDL_vsnprintf, iFEpupp) +GOM(SDL_vsnprintf, iFEpLpp) // SDL_vsscanf GO(SDL_Vulkan_CreateSurface, iFppp) GO(SDL_Vulkan_GetDrawableSize, vFppp) |