yvt / openspades

Compatible client of Ace of Spades 0.75
http://openspades.yvt.jp/
GNU General Public License v3.0
1.14k stars 218 forks source link

Portable mode for other platforms #1014

Open yvt opened 2 years ago

yvt commented 2 years ago

The portable mode is currently only implemented for Windows. It would be nice to have one for other platforms as well.

On Linux, /proc/self/exe and realpath could be used to get the current executable's path. Other platforms require different methods (see the implementation of current_exe from the Rust standard library). SDL_GetBasePath is also worth looking into.