Re: Feature request related to SDL_GetBasePath

Sik the hedgehog <[email protected]> Sun, 15 Jan 2017 01:40:39 -0300
Newsgroups gmane.comp.lib.sdl
Message-ID <CAEyBR+UusRfMT=Wq0wEY3smS3WzQEZLOpE4vVCW2ZKkpJHdCQg@mail.gmail.com>
SDL_GetBasePath should retrieve the path *of* the executable (i.e.
which directory it resides in). A function that retrieves the filename
should not include "path" in it. That probably solves a lot of the
dilemma here :P

SDL_GetBaseFileName? SDL_GetExecFileName?

Not sure whether a variant without extension is worth the effort (just
find the last dot and replace it with a '\0' if it exists), but I'm
leaving that up to the rest to decide.