Exe/current directory + open/save file dialog

How do you get the exe’s path with SDL2? I need it because if it’s run from the command prompt the current directory is relative to the command prompt’s current directory.

Also, how do you display open/save file dialogs in SDL2?

How do you get the exe’s path with SDL2? I need it because if it’s run
from the command prompt the current directory is relative to the command
prompt’s current directory.

https://wiki.libsdl.org/SDL_GetBasePath

Also, how do you display open/save file dialogs in SDL2?

You’ll have to create them yourself, SDL has no convenient functions for
that.

Cheers,
DanielAm 25.05.2014 05:35, schrieb polyfrag: