Closed geajack closed 2 years ago
RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY can't be NULL or false, since this will return CONTENT_DIR instead (probably depends on platform). (replaced with "default" in retroarch.cfg)
file_present_in_system() is used to look for and load "gbc_bios.bin", which in this case will look for it in the roms folder. the "/" can probably be changed to what is usually used in the cores like so:
#ifdef _WIN32
static char slash = '\\';
#else
static char slash = '/';
#endif
I have been told by @jdgleaver this should be fine now, closing...
Libretro provides a "RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY" environment variable, which according to the comments in the code is intended to be optional:
However, code in this project crashes if the libretro frontend gives a value of NULL:
The line at which
fullpath
is declared raises an exception and kills the app. I'm only just getting started with libretro, but this seems like non-compliance with the spec.