Open RicardoEPRodrigues opened 6 years ago
Solution is using the SDL_GetBasePath
like so:
#ifdef DEBUG
char *base_path = SDL_GetBasePath();
if (base_path) {
ThreeEngine::Debug::Log("Base Path: %s\n", base_path);
}
free(base_path);
#endif
It'd be best to load assets from a path relative to the main executable, rather than from a path relative to the current working directory (cwd).
https://github.com/RicardoEPRodrigues/3Engine/issues/1#issuecomment-403230211