[BOX32][WRAPPER] Added a few symbols to libSDL2
Some checks are pending
Build and Release Box64 / build (ubuntu-latest, ANDROID, Release) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, ANDROID, Trace) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, ARM64, Box32) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, ARM64, Release) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, ARM64, StaticBuild) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, ARM64, Trace) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, LARCH64, Box32) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, LARCH64, Release) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, LARCH64, StaticBuild) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, LARCH64, Trace) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, RISCV, Box32) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, RISCV, Release) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, RISCV, StaticBuild) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, RISCV, Trace) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, RK3588, Box32) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, RK3588, Release) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, RK3588, StaticBuild) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, RK3588, Trace) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, TERMUX, Release) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, TERMUX, Trace) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, X64, Box32) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, X64, Release) (push) Waiting to run
Build and Release Box64 / build (ubuntu-latest, X64, Trace) (push) Waiting to run

This commit is contained in:
ptitSeb 2024-10-18 18:59:15 +02:00
parent 0fb87c7926
commit 0821e6acc2
4 changed files with 12 additions and 7 deletions

View File

@ -43,6 +43,7 @@
#() WFi -> WFi
#() WFW -> WFW
#() WFu -> WFu
#() WFp -> WFp
#() uFv -> uFv
#() uFi -> uFi
#() uFu -> uFu

View File

@ -133,6 +133,7 @@ typedef uint8_t (*CFp_t)(void*);
typedef uint16_t (*WFi_t)(int32_t);
typedef uint16_t (*WFW_t)(uint16_t);
typedef uint16_t (*WFu_t)(uint32_t);
typedef uint16_t (*WFp_t)(void*);
typedef uint32_t (*uFv_t)(void);
typedef uint32_t (*uFi_t)(int32_t);
typedef uint32_t (*uFu_t)(uint32_t);
@ -1634,6 +1635,7 @@ void CFp_32(x64emu_t *emu, uintptr_t fcn) { CFp_t fn = (CFp_t)fcn; R_EAX = (unsi
void WFi_32(x64emu_t *emu, uintptr_t fcn) { WFi_t fn = (WFi_t)fcn; R_EAX = (unsigned short)fn(from_ptri(int32_t, R_ESP + 4)); }
void WFW_32(x64emu_t *emu, uintptr_t fcn) { WFW_t fn = (WFW_t)fcn; R_EAX = (unsigned short)fn(from_ptri(uint16_t, R_ESP + 4)); }
void WFu_32(x64emu_t *emu, uintptr_t fcn) { WFu_t fn = (WFu_t)fcn; R_EAX = (unsigned short)fn(from_ptri(uint32_t, R_ESP + 4)); }
void WFp_32(x64emu_t *emu, uintptr_t fcn) { WFp_t fn = (WFp_t)fcn; R_EAX = (unsigned short)fn(from_ptriv(R_ESP + 4)); }
void uFv_32(x64emu_t *emu, uintptr_t fcn) { uFv_t fn = (uFv_t)fcn; R_EAX = (uint32_t)fn(); }
void uFi_32(x64emu_t *emu, uintptr_t fcn) { uFi_t fn = (uFi_t)fcn; R_EAX = (uint32_t)fn(from_ptri(int32_t, R_ESP + 4)); }
void uFu_32(x64emu_t *emu, uintptr_t fcn) { uFu_t fn = (uFu_t)fcn; R_EAX = (uint32_t)fn(from_ptri(uint32_t, R_ESP + 4)); }

View File

@ -84,6 +84,7 @@ void CFp_32(x64emu_t *emu, uintptr_t fnc);
void WFi_32(x64emu_t *emu, uintptr_t fnc);
void WFW_32(x64emu_t *emu, uintptr_t fnc);
void WFu_32(x64emu_t *emu, uintptr_t fnc);
void WFp_32(x64emu_t *emu, uintptr_t fnc);
void uFv_32(x64emu_t *emu, uintptr_t fnc);
void uFi_32(x64emu_t *emu, uintptr_t fnc);
void uFu_32(x64emu_t *emu, uintptr_t fnc);

View File

@ -151,13 +151,14 @@ GO(SDL_GameControllerGetJoystick, pFp)
//GO(SDL_GameControllerGetStringForAxis, pFi)
//GO(SDL_GameControllerGetStringForButton, pFi)
//GO(SDL_GameControllerGetTouchpadFinger, iFpiipppp)
//GO(SDL_GameControllerGetType, uFp)
//GO(SDL_GameControllerGetVendor, WFp)
//GO(SDL_GameControllerHasButton, uFpi)
//GO(SDL_GameControllerHasLED, iFp)
//GO(SDL_GameControllerHasRumble, iFp)
//GO(SDL_GameControllerHasSensor, iFpi)
//GO(SDL_GameControllerIsSensorEnabled, uFpi)
GO(SDL_GameControllerGetType, uFp)
GO(SDL_GameControllerGetVendor, WFp)
GO(SDL_GameControllerHasAxis, iFpu)
GO(SDL_GameControllerHasButton, uFpi)
GO(SDL_GameControllerHasLED, iFp)
GO(SDL_GameControllerHasRumble, iFp)
GO(SDL_GameControllerHasSensor, iFpi)
GO(SDL_GameControllerIsSensorEnabled, uFpi)
GO(SDL_GameControllerMapping, pFp)
GO(SDL_GameControllerMappingForDeviceIndex, pFi)
//GO(SDL_GameControllerMappingForGUID, pFpp)