Skip to content

Commit

Permalink
[BOX32] More work on 32bits X11 wrapping (not 12 Labor of Hercules 6 …
Browse files Browse the repository at this point in the history
…works from Steam, but not Steam itself)
  • Loading branch information
ptitSeb committed Oct 5, 2024
1 parent 2a2f82a commit 8ec6b15
Show file tree
Hide file tree
Showing 12 changed files with 169 additions and 15 deletions.
17 changes: 17 additions & 0 deletions src/libtools/my_x11_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -877,4 +877,21 @@ typedef struct my_XdbeScreenVisualInfo_s
my_XdbeVisualInfo_t* visinfo;
} my_XdbeScreenVisualInfo_t;

typedef struct my_XF86VidModeModeInfo_s
{
unsigned int dotclock;
unsigned short hdisplay;
unsigned short hsyncstart;
unsigned short hsyncend;
unsigned short htotal;
unsigned short hskew;
unsigned short vdisplay;
unsigned short vsyncstart;
unsigned short vsyncend;
unsigned short vtotal;
unsigned int flags;
int privsize;
int* tc_private;
} my_XF86VidModeModeInfo_t;

#endif//MY_X11_DEFS
17 changes: 17 additions & 0 deletions src/libtools/my_x11_defs_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -810,4 +810,21 @@ typedef struct my_XdbeScreenVisualInfo_32_s
ptr_t visinfo; //my_XdbeVisualInfo_t*
} my_XdbeScreenVisualInfo_32_t;

typedef struct my_XF86VidModeModeInfo_32_s
{
unsigned int dotclock;
unsigned short hdisplay;
unsigned short hsyncstart;
unsigned short hsyncend;
unsigned short htotal;
unsigned short hskew;
unsigned short vdisplay;
unsigned short vsyncstart;
unsigned short vsyncend;
unsigned short vtotal;
unsigned int flags;
int privsize;
ptr_t tc_private;
} my_XF86VidModeModeInfo_32_t;

#endif//MY_X11_DEFS_32
11 changes: 10 additions & 1 deletion src/wrapped32/generated/functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@
#() iFpppL -> iFpppL
#() iFpppp -> iFpppp
#() iFSpiL -> iFSpiL
#() iFXiii -> iFXiii
#() iFXiip -> iFXiip
#() iFXiuL -> iFXiuL
#() iFXipi -> iFXipi
Expand Down Expand Up @@ -743,7 +744,6 @@
#() pFXCip -> pFXCip
#() pFXLpi -> pFXLpi
#() pFXLpp -> pFXLpp
#() pFXppi -> pFXppi
#() pFXppp -> pFXppp
#() vFbp_ppp -> vFBppp
#() vFXLLbL_ -> vFXLLB
Expand Down Expand Up @@ -886,6 +886,7 @@
#() iFEpplp -> iFEpplp
#() iFEpppi -> iFEpppi
#() iFEpppp -> iFEpppp
#() iFEXipp -> iFEXipp
#() iFEXLip -> iFEXLip
#() iFEXLlp -> iFEXLlp
#() iFEXLpi -> iFEXLpi
Expand Down Expand Up @@ -930,6 +931,7 @@
#() pFEppip -> pFEppip
#() pFEXipp -> pFEXipp
#() pFEXlpp -> pFEXlpp
#() pFEXppi -> pFEXppi
#() pFuiupp -> pFuiupp
#() pFpiiuu -> pFpiiuu
#() pFpippp -> pFpippp
Expand Down Expand Up @@ -1208,6 +1210,7 @@
#() iFuiiiiuup -> iFuiiiiuup
#() iFXuupuupp -> iFXuupuupp
#() iFXLpipppp -> iFXLpipppp
#() iFXLppLpip -> iFXLppLpip
#() iFXpIIIppp -> iFXpIIIppp
#() CFuiifpppp -> CFuiifpppp
#() uFuipppppp -> uFuipppppp
Expand Down Expand Up @@ -1635,11 +1638,15 @@ wrappedlibgl:
- eglSetBlobCacheFuncsANDROID
- vFXpi:
- glXSwapIntervalEXT
- pFXip:
- glXChooseVisual
- vFuipp:
- glShaderSource
- glShaderSourceARB
- pFXipp:
- glXChooseFBConfig
- pFXppi:
- glXCreateContext
wrappedlibglu:
- vFpup:
- gluNurbsCallback
Expand Down Expand Up @@ -1953,6 +1960,8 @@ wrappedlibxrandr:
- XRRSetCrtcConfig
wrappedlibxrender:
wrappedlibxxf86vm:
- iFXipp:
- XF86VidModeGetAllModeLines
wrappedopenal:
- vFv:
- alRequestFoldbackStop
Expand Down
6 changes: 5 additions & 1 deletion src/wrapped32/generated/wrappedlibgltypes32.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ typedef void* (*pFXp_t)(void*, void*);
typedef void (*vFipp_t)(int32_t, void*, void*);
typedef void (*vFppp_t)(void*, void*, void*);
typedef void (*vFXpi_t)(void*, void*, int32_t);
typedef void* (*pFXip_t)(void*, int32_t, void*);
typedef void (*vFuipp_t)(uint32_t, int32_t, void*, void*);
typedef void* (*pFXipp_t)(void*, int32_t, void*, void*);
typedef void* (*pFXppi_t)(void*, void*, void*, int32_t);

#define SUPER() ADDED_FUNCTIONS() \
GO(glXSwapIntervalMESA, iFi_t) \
Expand All @@ -36,8 +38,10 @@ typedef void* (*pFXipp_t)(void*, int32_t, void*, void*);
GO(glProgramCallbackMESA, vFipp_t) \
GO(eglSetBlobCacheFuncsANDROID, vFppp_t) \
GO(glXSwapIntervalEXT, vFXpi_t) \
GO(glXChooseVisual, pFXip_t) \
GO(glShaderSource, vFuipp_t) \
GO(glShaderSourceARB, vFuipp_t) \
GO(glXChooseFBConfig, pFXipp_t)
GO(glXChooseFBConfig, pFXipp_t) \
GO(glXCreateContext, pFXppi_t)

#endif // __wrappedlibglTYPES32_H_
4 changes: 3 additions & 1 deletion src/wrapped32/generated/wrappedlibxxf86vmtypes32.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
#define ADDED_FUNCTIONS()
#endif

typedef int32_t (*iFXipp_t)(void*, int32_t, void*, void*);

#define SUPER() ADDED_FUNCTIONS()
#define SUPER() ADDED_FUNCTIONS() \
GO(XF86VidModeGetAllModeLines, iFXipp_t)

#endif // __wrappedlibxxf86vmTYPES32_H_
10 changes: 8 additions & 2 deletions src/wrapped32/generated/wrapper32.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ typedef int32_t (*iFpppu_t)(void*, void*, void*, uint32_t);
typedef int32_t (*iFpppL_t)(void*, void*, void*, uintptr_t);
typedef int32_t (*iFpppp_t)(void*, void*, void*, void*);
typedef int32_t (*iFSpiL_t)(void*, void*, int32_t, uintptr_t);
typedef int32_t (*iFXiii_t)(void*, int32_t, int32_t, int32_t);
typedef int32_t (*iFXiip_t)(void*, int32_t, int32_t, void*);
typedef int32_t (*iFXiuL_t)(void*, int32_t, uint32_t, uintptr_t);
typedef int32_t (*iFXipi_t)(void*, int32_t, void*, int32_t);
Expand Down Expand Up @@ -833,7 +834,6 @@ typedef void* (*pFXiii_t)(void*, int32_t, int32_t, int32_t);
typedef void* (*pFXCip_t)(void*, uint8_t, int32_t, void*);
typedef void* (*pFXLpi_t)(void*, uintptr_t, void*, int32_t);
typedef void* (*pFXLpp_t)(void*, uintptr_t, void*, void*);
typedef void* (*pFXppi_t)(void*, void*, void*, int32_t);
typedef void* (*pFXppp_t)(void*, void*, void*, void*);
typedef void (*vFbp_ppp_t)(struct_p_t*, void*, void*, void*);
typedef void (*vFXLLbL__t)(void*, uintptr_t, uintptr_t, struct_L_t*);
Expand Down Expand Up @@ -976,6 +976,7 @@ typedef int32_t (*iFEpLpV_t)(x64emu_t*, void*, uintptr_t, void*, void*);
typedef int32_t (*iFEpplp_t)(x64emu_t*, void*, void*, intptr_t, void*);
typedef int32_t (*iFEpppi_t)(x64emu_t*, void*, void*, void*, int32_t);
typedef int32_t (*iFEpppp_t)(x64emu_t*, void*, void*, void*, void*);
typedef int32_t (*iFEXipp_t)(x64emu_t*, void*, int32_t, void*, void*);
typedef int32_t (*iFEXLip_t)(x64emu_t*, void*, uintptr_t, int32_t, void*);
typedef int32_t (*iFEXLlp_t)(x64emu_t*, void*, uintptr_t, intptr_t, void*);
typedef int32_t (*iFEXLpi_t)(x64emu_t*, void*, uintptr_t, void*, int32_t);
Expand Down Expand Up @@ -1020,6 +1021,7 @@ typedef uintptr_t (*LFXpppi_t)(void*, void*, void*, void*, int32_t);
typedef void* (*pFEppip_t)(x64emu_t*, void*, void*, int32_t, void*);
typedef void* (*pFEXipp_t)(x64emu_t*, void*, int32_t, void*, void*);
typedef void* (*pFEXlpp_t)(x64emu_t*, void*, intptr_t, void*, void*);
typedef void* (*pFEXppi_t)(x64emu_t*, void*, void*, void*, int32_t);
typedef void* (*pFuiupp_t)(uint32_t, int32_t, uint32_t, void*, void*);
typedef void* (*pFpiiuu_t)(void*, int32_t, int32_t, uint32_t, uint32_t);
typedef void* (*pFpippp_t)(void*, int32_t, void*, void*, void*);
Expand Down Expand Up @@ -1298,6 +1300,7 @@ typedef int32_t (*iFEpLiLppp_t)(x64emu_t*, void*, uintptr_t, int32_t, uintptr_t,
typedef int32_t (*iFuiiiiuup_t)(uint32_t, int32_t, int32_t, int32_t, int32_t, uint32_t, uint32_t, void*);
typedef int32_t (*iFXuupuupp_t)(void*, uint32_t, uint32_t, void*, uint32_t, uint32_t, void*, void*);
typedef int32_t (*iFXLpipppp_t)(void*, uintptr_t, void*, int32_t, void*, void*, void*, void*);
typedef int32_t (*iFXLppLpip_t)(void*, uintptr_t, void*, void*, uintptr_t, void*, int32_t, void*);
typedef int32_t (*iFXpIIIppp_t)(void*, void*, int64_t, int64_t, int64_t, void*, void*, void*);
typedef uint8_t (*CFuiifpppp_t)(uint32_t, int32_t, int32_t, float, void*, void*, void*, void*);
typedef uint32_t (*uFuipppppp_t)(uint32_t, int32_t, void*, void*, void*, void*, void*, void*);
Expand Down Expand Up @@ -2123,6 +2126,7 @@ void iFpppu_32(x64emu_t *emu, uintptr_t fcn) { iFpppu_t fn = (iFpppu_t)fcn; R_EA
void iFpppL_32(x64emu_t *emu, uintptr_t fcn) { iFpppL_t fn = (iFpppL_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12), from_ulong(from_ptri(ulong_t, R_ESP + 16))); }
void iFpppp_32(x64emu_t *emu, uintptr_t fcn) { iFpppp_t fn = (iFpppp_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16)); }
void iFSpiL_32(x64emu_t *emu, uintptr_t fcn) { iFSpiL_t fn = (iFSpiL_t)fcn; R_EAX = fn(io_convert32(from_ptriv(R_ESP + 4)), from_ptriv(R_ESP + 8), from_ptri(int32_t, R_ESP + 12), from_ulong(from_ptri(ulong_t, R_ESP + 16))); }
void iFXiii_32(x64emu_t *emu, uintptr_t fcn) { iFXiii_t fn = (iFXiii_t)fcn; R_EAX = fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptri(int32_t, R_ESP + 8), from_ptri(int32_t, R_ESP + 12), from_ptri(int32_t, R_ESP + 16)); }
void iFXiip_32(x64emu_t *emu, uintptr_t fcn) { iFXiip_t fn = (iFXiip_t)fcn; R_EAX = fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptri(int32_t, R_ESP + 8), from_ptri(int32_t, R_ESP + 12), from_ptriv(R_ESP + 16)); }
void iFXiuL_32(x64emu_t *emu, uintptr_t fcn) { iFXiuL_t fn = (iFXiuL_t)fcn; R_EAX = fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptri(int32_t, R_ESP + 8), from_ptri(uint32_t, R_ESP + 12), from_ulong(from_ptri(ulong_t, R_ESP + 16))); }
void iFXipi_32(x64emu_t *emu, uintptr_t fcn) { iFXipi_t fn = (iFXipi_t)fcn; R_EAX = fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptri(int32_t, R_ESP + 8), from_ptriv(R_ESP + 12), from_ptri(int32_t, R_ESP + 16)); }
Expand Down Expand Up @@ -2187,7 +2191,6 @@ void pFXiii_32(x64emu_t *emu, uintptr_t fcn) { pFXiii_t fn = (pFXiii_t)fcn; R_EA
void pFXCip_32(x64emu_t *emu, uintptr_t fcn) { pFXCip_t fn = (pFXCip_t)fcn; R_EAX = to_ptrv(fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptri(uint8_t, R_ESP + 8), from_ptri(int32_t, R_ESP + 12), from_ptriv(R_ESP + 16))); }
void pFXLpi_32(x64emu_t *emu, uintptr_t fcn) { pFXLpi_t fn = (pFXLpi_t)fcn; R_EAX = to_ptrv(fn(getDisplay(from_ptriv(R_ESP + 4)), from_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ptriv(R_ESP + 12), from_ptri(int32_t, R_ESP + 16))); }
void pFXLpp_32(x64emu_t *emu, uintptr_t fcn) { pFXLpp_t fn = (pFXLpp_t)fcn; R_EAX = to_ptrv(fn(getDisplay(from_ptriv(R_ESP + 4)), from_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16))); }
void pFXppi_32(x64emu_t *emu, uintptr_t fcn) { pFXppi_t fn = (pFXppi_t)fcn; R_EAX = to_ptrv(fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12), from_ptri(int32_t, R_ESP + 16))); }
void pFXppp_32(x64emu_t *emu, uintptr_t fcn) { pFXppp_t fn = (pFXppp_t)fcn; R_EAX = to_ptrv(fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16))); }
void vFbp_ppp_32(x64emu_t *emu, uintptr_t fcn) { vFbp_ppp_t fn = (vFbp_ppp_t)fcn; struct_p_t arg_4={0}; if (*(ptr_t*)(from_ptr((R_ESP + 4)))) from_struct_p(&arg_4, *(ptr_t*)(from_ptr((R_ESP + 4)))); fn(*(ptr_t*)(from_ptr((R_ESP + 4))) ? &arg_4 : NULL, from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16)); if (*(ptr_t*)(from_ptr((R_ESP + 4)))) to_struct_p(*(ptr_t*)(from_ptr((R_ESP + 4))), &arg_4); }
void vFXLLbL__32(x64emu_t *emu, uintptr_t fcn) { vFXLLbL__t fn = (vFXLLbL__t)fcn; struct_L_t arg_16={0}; if (*(ptr_t*)(from_ptr((R_ESP + 16)))) from_struct_L(&arg_16, *(ptr_t*)(from_ptr((R_ESP + 16)))); fn(getDisplay(from_ptriv(R_ESP + 4)), from_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ulong(from_ptri(ulong_t, R_ESP + 12)), *(ptr_t*)(from_ptr((R_ESP + 16))) ? &arg_16 : NULL); if (*(ptr_t*)(from_ptr((R_ESP + 16)))) to_struct_L(*(ptr_t*)(from_ptr((R_ESP + 16))), &arg_16); }
Expand Down Expand Up @@ -2330,6 +2333,7 @@ void iFEpLpV_32(x64emu_t *emu, uintptr_t fcn) { iFEpLpV_t fn = (iFEpLpV_t)fcn; R
void iFEpplp_32(x64emu_t *emu, uintptr_t fcn) { iFEpplp_t fn = (iFEpplp_t)fcn; R_EAX = fn(emu, from_ptriv(R_ESP + 4), from_ptriv(R_ESP + 8), from_long(from_ptri(long_t, R_ESP + 12)), from_ptriv(R_ESP + 16)); }
void iFEpppi_32(x64emu_t *emu, uintptr_t fcn) { iFEpppi_t fn = (iFEpppi_t)fcn; R_EAX = fn(emu, from_ptriv(R_ESP + 4), from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12), from_ptri(int32_t, R_ESP + 16)); }
void iFEpppp_32(x64emu_t *emu, uintptr_t fcn) { iFEpppp_t fn = (iFEpppp_t)fcn; R_EAX = fn(emu, from_ptriv(R_ESP + 4), from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16)); }
void iFEXipp_32(x64emu_t *emu, uintptr_t fcn) { iFEXipp_t fn = (iFEXipp_t)fcn; R_EAX = fn(emu, getDisplay(from_ptriv(R_ESP + 4)), from_ptri(int32_t, R_ESP + 8), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16)); }
void iFEXLip_32(x64emu_t *emu, uintptr_t fcn) { iFEXLip_t fn = (iFEXLip_t)fcn; R_EAX = fn(emu, getDisplay(from_ptriv(R_ESP + 4)), from_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ptri(int32_t, R_ESP + 12), from_ptriv(R_ESP + 16)); }
void iFEXLlp_32(x64emu_t *emu, uintptr_t fcn) { iFEXLlp_t fn = (iFEXLlp_t)fcn; R_EAX = fn(emu, getDisplay(from_ptriv(R_ESP + 4)), from_ulong(from_ptri(ulong_t, R_ESP + 8)), from_long(from_ptri(long_t, R_ESP + 12)), from_ptriv(R_ESP + 16)); }
void iFEXLpi_32(x64emu_t *emu, uintptr_t fcn) { iFEXLpi_t fn = (iFEXLpi_t)fcn; R_EAX = fn(emu, getDisplay(from_ptriv(R_ESP + 4)), from_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ptriv(R_ESP + 12), from_ptri(int32_t, R_ESP + 16)); }
Expand Down Expand Up @@ -2374,6 +2378,7 @@ void LFXpppi_32(x64emu_t *emu, uintptr_t fcn) { LFXpppi_t fn = (LFXpppi_t)fcn; R
void pFEppip_32(x64emu_t *emu, uintptr_t fcn) { pFEppip_t fn = (pFEppip_t)fcn; R_EAX = to_ptrv(fn(emu, from_ptriv(R_ESP + 4), from_ptriv(R_ESP + 8), from_ptri(int32_t, R_ESP + 12), from_ptriv(R_ESP + 16))); }
void pFEXipp_32(x64emu_t *emu, uintptr_t fcn) { pFEXipp_t fn = (pFEXipp_t)fcn; R_EAX = to_ptrv(fn(emu, getDisplay(from_ptriv(R_ESP + 4)), from_ptri(int32_t, R_ESP + 8), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16))); }
void pFEXlpp_32(x64emu_t *emu, uintptr_t fcn) { pFEXlpp_t fn = (pFEXlpp_t)fcn; R_EAX = to_ptrv(fn(emu, getDisplay(from_ptriv(R_ESP + 4)), from_long(from_ptri(long_t, R_ESP + 8)), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16))); }
void pFEXppi_32(x64emu_t *emu, uintptr_t fcn) { pFEXppi_t fn = (pFEXppi_t)fcn; R_EAX = to_ptrv(fn(emu, getDisplay(from_ptriv(R_ESP + 4)), from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12), from_ptri(int32_t, R_ESP + 16))); }
void pFuiupp_32(x64emu_t *emu, uintptr_t fcn) { pFuiupp_t fn = (pFuiupp_t)fcn; R_EAX = to_ptrv(fn(from_ptri(uint32_t, R_ESP + 4), from_ptri(int32_t, R_ESP + 8), from_ptri(uint32_t, R_ESP + 12), from_ptriv(R_ESP + 16), from_ptriv(R_ESP + 20))); }
void pFpiiuu_32(x64emu_t *emu, uintptr_t fcn) { pFpiiuu_t fn = (pFpiiuu_t)fcn; R_EAX = to_ptrv(fn(from_ptriv(R_ESP + 4), from_ptri(int32_t, R_ESP + 8), from_ptri(int32_t, R_ESP + 12), from_ptri(uint32_t, R_ESP + 16), from_ptri(uint32_t, R_ESP + 20))); }
void pFpippp_32(x64emu_t *emu, uintptr_t fcn) { pFpippp_t fn = (pFpippp_t)fcn; R_EAX = to_ptrv(fn(from_ptriv(R_ESP + 4), from_ptri(int32_t, R_ESP + 8), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16), from_ptriv(R_ESP + 20))); }
Expand Down Expand Up @@ -2652,6 +2657,7 @@ void iFEpLiLppp_32(x64emu_t *emu, uintptr_t fcn) { iFEpLiLppp_t fn = (iFEpLiLppp
void iFuiiiiuup_32(x64emu_t *emu, uintptr_t fcn) { iFuiiiiuup_t fn = (iFuiiiiuup_t)fcn; R_EAX = fn(from_ptri(uint32_t, R_ESP + 4), from_ptri(int32_t, R_ESP + 8), from_ptri(int32_t, R_ESP + 12), from_ptri(int32_t, R_ESP + 16), from_ptri(int32_t, R_ESP + 20), from_ptri(uint32_t, R_ESP + 24), from_ptri(uint32_t, R_ESP + 28), from_ptriv(R_ESP + 32)); }
void iFXuupuupp_32(x64emu_t *emu, uintptr_t fcn) { iFXuupuupp_t fn = (iFXuupuupp_t)fcn; R_EAX = fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptri(uint32_t, R_ESP + 8), from_ptri(uint32_t, R_ESP + 12), from_ptriv(R_ESP + 16), from_ptri(uint32_t, R_ESP + 20), from_ptri(uint32_t, R_ESP + 24), from_ptriv(R_ESP + 28), from_ptriv(R_ESP + 32)); }
void iFXLpipppp_32(x64emu_t *emu, uintptr_t fcn) { iFXLpipppp_t fn = (iFXLpipppp_t)fcn; R_EAX = fn(getDisplay(from_ptriv(R_ESP + 4)), from_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ptriv(R_ESP + 12), from_ptri(int32_t, R_ESP + 16), from_ptriv(R_ESP + 20), from_ptriv(R_ESP + 24), from_ptriv(R_ESP + 28), from_ptriv(R_ESP + 32)); }
void iFXLppLpip_32(x64emu_t *emu, uintptr_t fcn) { iFXLppLpip_t fn = (iFXLppLpip_t)fcn; R_EAX = fn(getDisplay(from_ptriv(R_ESP + 4)), from_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16), from_ulong(from_ptri(ulong_t, R_ESP + 20)), from_ptriv(R_ESP + 24), from_ptri(int32_t, R_ESP + 28), from_ptriv(R_ESP + 32)); }
void iFXpIIIppp_32(x64emu_t *emu, uintptr_t fcn) { iFXpIIIppp_t fn = (iFXpIIIppp_t)fcn; R_EAX = fn(getDisplay(from_ptriv(R_ESP + 4)), from_ptriv(R_ESP + 8), from_ptri(int64_t, R_ESP + 12), from_ptri(int64_t, R_ESP + 20), from_ptri(int64_t, R_ESP + 28), from_ptriv(R_ESP + 36), from_ptriv(R_ESP + 40), from_ptriv(R_ESP + 44)); }
void CFuiifpppp_32(x64emu_t *emu, uintptr_t fcn) { CFuiifpppp_t fn = (CFuiifpppp_t)fcn; R_EAX = (unsigned char)fn(from_ptri(uint32_t, R_ESP + 4), from_ptri(int32_t, R_ESP + 8), from_ptri(int32_t, R_ESP + 12), from_ptri(float, R_ESP + 16), from_ptriv(R_ESP + 20), from_ptriv(R_ESP + 24), from_ptriv(R_ESP + 28), from_ptriv(R_ESP + 32)); }
void uFuipppppp_32(x64emu_t *emu, uintptr_t fcn) { uFuipppppp_t fn = (uFuipppppp_t)fcn; R_EAX = (uint32_t)fn(from_ptri(uint32_t, R_ESP + 4), from_ptri(int32_t, R_ESP + 8), from_ptriv(R_ESP + 12), from_ptriv(R_ESP + 16), from_ptriv(R_ESP + 20), from_ptriv(R_ESP + 24), from_ptriv(R_ESP + 28), from_ptriv(R_ESP + 32)); }
Expand Down
5 changes: 4 additions & 1 deletion src/wrapped32/generated/wrapper32.h
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ void iFpppu_32(x64emu_t *emu, uintptr_t fnc);
void iFpppL_32(x64emu_t *emu, uintptr_t fnc);
void iFpppp_32(x64emu_t *emu, uintptr_t fnc);
void iFSpiL_32(x64emu_t *emu, uintptr_t fnc);
void iFXiii_32(x64emu_t *emu, uintptr_t fnc);
void iFXiip_32(x64emu_t *emu, uintptr_t fnc);
void iFXiuL_32(x64emu_t *emu, uintptr_t fnc);
void iFXipi_32(x64emu_t *emu, uintptr_t fnc);
Expand Down Expand Up @@ -784,7 +785,6 @@ void pFXiii_32(x64emu_t *emu, uintptr_t fnc);
void pFXCip_32(x64emu_t *emu, uintptr_t fnc);
void pFXLpi_32(x64emu_t *emu, uintptr_t fnc);
void pFXLpp_32(x64emu_t *emu, uintptr_t fnc);
void pFXppi_32(x64emu_t *emu, uintptr_t fnc);
void pFXppp_32(x64emu_t *emu, uintptr_t fnc);
void vFbp_ppp_32(x64emu_t *emu, uintptr_t fnc);
void vFXLLbL__32(x64emu_t *emu, uintptr_t fnc);
Expand Down Expand Up @@ -927,6 +927,7 @@ void iFEpLpV_32(x64emu_t *emu, uintptr_t fnc);
void iFEpplp_32(x64emu_t *emu, uintptr_t fnc);
void iFEpppi_32(x64emu_t *emu, uintptr_t fnc);
void iFEpppp_32(x64emu_t *emu, uintptr_t fnc);
void iFEXipp_32(x64emu_t *emu, uintptr_t fnc);
void iFEXLip_32(x64emu_t *emu, uintptr_t fnc);
void iFEXLlp_32(x64emu_t *emu, uintptr_t fnc);
void iFEXLpi_32(x64emu_t *emu, uintptr_t fnc);
Expand Down Expand Up @@ -971,6 +972,7 @@ void LFXpppi_32(x64emu_t *emu, uintptr_t fnc);
void pFEppip_32(x64emu_t *emu, uintptr_t fnc);
void pFEXipp_32(x64emu_t *emu, uintptr_t fnc);
void pFEXlpp_32(x64emu_t *emu, uintptr_t fnc);
void pFEXppi_32(x64emu_t *emu, uintptr_t fnc);
void pFuiupp_32(x64emu_t *emu, uintptr_t fnc);
void pFpiiuu_32(x64emu_t *emu, uintptr_t fnc);
void pFpippp_32(x64emu_t *emu, uintptr_t fnc);
Expand Down Expand Up @@ -1249,6 +1251,7 @@ void iFEpLiLppp_32(x64emu_t *emu, uintptr_t fnc);
void iFuiiiiuup_32(x64emu_t *emu, uintptr_t fnc);
void iFXuupuupp_32(x64emu_t *emu, uintptr_t fnc);
void iFXLpipppp_32(x64emu_t *emu, uintptr_t fnc);
void iFXLppLpip_32(x64emu_t *emu, uintptr_t fnc);
void iFXpIIIppp_32(x64emu_t *emu, uintptr_t fnc);
void CFuiifpppp_32(x64emu_t *emu, uintptr_t fnc);
void uFuipppppp_32(x64emu_t *emu, uintptr_t fnc);
Expand Down
Loading

0 comments on commit 8ec6b15

Please sign in to comment.