ares-emulator / ares

ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation.
https://ares-emu.net
Other
945 stars 115 forks source link

nall: respect prefix for sharedData location on Linux/BSD #1575

Closed bsdcode closed 2 months ago

bsdcode commented 2 months ago

The hardcoded /usr/share for the sharedData location doesn't respect the given prefix, e.g. ~/.local or /usr/local. This results in the emulator not finding the shaders or databases in case the emulator is not installed under /usr and the files are not found in the application or user data directory.

Now the build script defines a preprocessor constant ARES_PREFIX which is set to the requested prefix. With the help of the C preprocessor stringize operator, this prefix is then used as the root of the sharedData location.

Fixes https://github.com/ares-emulator/ares/issues/1179