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.
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
andrealpath
could be used to get the current executable's path. Other platforms require different methods (see the implementation ofcurrent_exe
from the Rust standard library).SDL_GetBasePath
is also worth looking into.