Open-GD / OpenGD

Open source implementation of Geometry Dash powered by a fork of cocos2dx 4.0.
GNU General Public License v3.0
180 stars 26 forks source link

Prevent Linux from crashing on compile #11

Closed FireMario211 closed 1 year ago

FireMario211 commented 1 year ago

This change allows you to compile on Linux, and fixes the mistake for the string when specifying the directory if the platform is Linux: (\ instead of /) This changes ~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Geometry Dash\ to ~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Geometry Dash/.

This change also adds a new directory if the platform is Mac (Thanks to @Partur-dev) . Although I don't have a Mac so I cannot confirm that works, and I'm unsure whether or not GD is just a .app file (Geometry Dash.app) or a directory for Mac and the binary is there. (Geometry Dash/)

Let me know if there needs to be any changes.