dethrace-labs / dethrace

Reverse engineering the 1997 game "Carmageddon"
https://twitter.com/dethrace_labs
GNU General Public License v3.0
859 stars 44 forks source link

Dethrace fails to find gamedata when started through the Launcher (on Macos) #308

Closed madebr closed 1 year ago

madebr commented 1 year ago

From discord:

and launch it from terminal because there’s a bug where game fails to pick files otherwise

I remember reading somewhere macos sets the working directory to / or something similar. Or it adds some arguments? Idk, I don't use it.

I think we should detect this case, and use _NSGetExecutablePath to change the working directory.