HereInPlainSight / gshade_installer

GShade Installer / Updater Bash Script for Linux
GNU General Public License v3.0
59 stars 18 forks source link

Added installation step for Rosetta #22

Closed FleetAdmiralButter closed 1 year ago

FleetAdmiralButter commented 1 year ago

Hi,

Recent versions of GShade started shipping DLLs that require AVX by default.

When running GShade under Wine/Rosetta, AVX is not supported as M1/M2 chips can't translate the instruction, resulting in a game crash when this script is used.

I've added a step to the installer to check for when AVX support is missing under macOS and link the non-AVX DLLs instead (which is still shipped by GShade).

I tried to make as few changes as possible here to avoid introducing regressions for non-Mac systems. I unfortunately don't have a Linux machine on me but I have tested this with XIV on Mac using separate Macs with Intel/M1 CPUs and verified that the correct DLL was being linked for each.

Thanks!

HereInPlainSight commented 1 year ago

Thanks! I thought I made a fix for this for Linux at some point, but apparently that was a fever dream. Gonna commit this as-is, but may change it to make it more generic for figuring out and fixing AVX on both Mac (which especially I would never know how to do on my own) and Linux at the same time when I get a chance. Thank you again!