Closed Rizato closed 6 months ago
Closing #130 as this solves the problem it tried to workaround.
Tested on Windows, Intel Mac, and Steam Deck
@noblemaster Could you try this out for me on an apple silicon mac? I still don't have access to one sadly, but I suspect this will work for you since the previous loader did.
Yes, it works on M2! Just merge it when you are ready. 😄
Yes, it works on M2! Just merge it when you are ready. 😄
Awesome! Thanks.
@code-disaster Any thoughts?
This seems to be the solution I need. How can I test this as well?
I cherry-picked your change in f0cc286 and made a small adjustment in cb972c9 to remember and reuse the CRC of the first library extracted.
Behind the scenes, the libgdx loader extracts
libsteam_api.dylib
andlibsteamworks4j.dylib
into separate directories based on the CRC checksum of their contents. Unfortunately,libsteam_api.dylib
has an install name of@loader_path/libsteam_api.dylib
. When loadinglibsteamworks4j.dylib
it expectslibsteam_api.dylib
to be in the same directory.This patch hardcodes the result of
crc()
to00000000
. As a result, both libraries will be extracted inside<libgdx-path>/00000000/
and libsteamworks4j.dylib loads successfully.Fixes #117