ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.73k stars 267 forks source link

Barony game need SDL_GameControllerHasRumble to accept a joypad #1458

Closed thaihugo closed 5 months ago

thaihugo commented 5 months ago

Hello all,

The game Barony v 4.02.2023.09.24 will work with Box64 on RPI5. Some graphics will be black until a LIBGL_DRI3_DISABLE=1 is applied.

However, starting it with a joystick that has rumble function will result in this error message:

Error: PltResolver: Symbol  SDL_GameControllerHasRumble(ver 0: SDL_GameControllerHasRumble) not found, cannot apply R_X86_64_JUMP_SLOT 0x1009ac108 (0x100109216) in /mnt/local/Jeux/Barony/game/barony.x86_64 (local_maplib=(nil), global maplib=0x415392e0, deepbind=0)

Here is the native/emulated log:

Using native(wrapped) libSDL2-2.0.so.0
Using native(wrapped) libdl.so.2
Using native(wrapped) libm.so.6
Using native(wrapped) librt.so.1
Using native(wrapped) libpthread.so.0
Using native(wrapped) libSDL2_image-2.0.so.0
Error initializing native libSDL2_net-2.0.so.0 (last dlerror is libSDL2_net-2.0.so.0: cannot open shared object file: No such file or directory)
Using emulated libSDL2_net-2.0.so.0
Using native(wrapped) libSDL2_ttf-2.0.so.0
Using native(wrapped) libGL.so.1
Using emulated libfmod.so.13
Using emulated libphysfs.so.1
Using native(wrapped) libpng16.so.16
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) libbsd.so.0
Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1

As I see some SDL gamecontroller functions are added in the latest commit, may I ask for this one so I can see if it is fully functional with a controller and enable 2 player split screen?

Thanks

Hugo

thaihugo commented 5 months ago

It is perfectly working now. Thanks a lot!