diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-06-16 15:03:08 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-06-16 15:03:08 +0200 |
| commit | 8428fafd3ac1b5dd347227af3b6d7b58cb25b37a (patch) | |
| tree | f27a66cacf9b1737c8332e86341679169f04aea2 /src/wrapped | |
| parent | 3074846477c7168884d291f58b56f1957a42e033 (diff) | |
| download | box64-8428fafd3ac1b5dd347227af3b6d7b58cb25b37a.tar.gz box64-8428fafd3ac1b5dd347227af3b6d7b58cb25b37a.zip | |
Added some hack to try detect SDL_sound custom build for SDL2 and use emulated one first (fixing some sound in To The Moon)
Diffstat (limited to 'src/wrapped')
| -rwxr-xr-x | src/wrapped/wrappedsdl2image.c | 7 | ||||
| -rwxr-xr-x | src/wrapped/wrappedsdl2ttf.c | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/wrapped/wrappedsdl2image.c b/src/wrapped/wrappedsdl2image.c index 6c514abf..5b531167 100755 --- a/src/wrapped/wrappedsdl2image.c +++ b/src/wrapped/wrappedsdl2image.c @@ -153,8 +153,11 @@ const char* sdl2imageName = "libSDL2_image-2.0.so.0"; #define CUSTOM_INIT \ my_lib = lib; \ - lib->priv.w.p2 = getSDL2ImageMy(lib); \ - lib->altmy = strdup("my2_"); + lib->priv.w.p2 = getSDL2ImageMy(lib); \ + lib->altmy = strdup("my2_"); \ + lib->priv.w.needed = 1; \ + lib->priv.w.neededlibs = (char**)calloc(lib->priv.w.needed, sizeof(char*)); \ + lib->priv.w.neededlibs[0] = strdup("libSDL2-2.0.so.0"); #define CUSTOM_FINI \ free(lib->priv.w.p2); \ diff --git a/src/wrapped/wrappedsdl2ttf.c b/src/wrapped/wrappedsdl2ttf.c index 9e92b871..c0944858 100755 --- a/src/wrapped/wrappedsdl2ttf.c +++ b/src/wrapped/wrappedsdl2ttf.c @@ -61,7 +61,10 @@ const char* sdl2ttfName = "libSDL2_ttf-2.0.so.0"; #define CUSTOM_INIT \ my_lib = lib; \ lib->altmy = strdup("my2_"); \ - lib->priv.w.p2 = getSDL2TTFMy(lib); + lib->priv.w.p2 = getSDL2TTFMy(lib); \ + lib->priv.w.needed = 1; \ + lib->priv.w.neededlibs = (char**)calloc(lib->priv.w.needed, sizeof(char*)); \ + lib->priv.w.neededlibs[0] = strdup("libSDL2-2.0.so.0"); #define CUSTOM_FINI \ free(lib->priv.w.p2); \ |