static void find_and_set_first_file(void) { //Last fallback - we'll need to start the first executable file // we can find in the RetroArch cores directory char first_file[PATH_MAX]; find_first_libretro_core(first_file, sizeof(first_file), #if defined(_XBOX360) "game:", "xex" #elif defined(_XBOX1) "D:", "xbe" #endif ); if(first_file) { #ifdef _XBOX1 fill_pathname_join(libretro_path, "D:", first_file, sizeof(libretro_path)); #else strlcpy(libretro_path, first_file, sizeof(libretro_path)); #endif RARCH_LOG("libretro_path now set to: %s.\n", libretro_path); } else RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n"); }
static void find_and_set_first_file(void) { //Last fallback - we'll need to start the first executable file // we can find in the RetroArch cores directory char first_file[512] = {0}; find_first_libretro_core(first_file, sizeof(first_file), default_paths.core_dir, "dol"); if(first_file[0]) strlcpy(default_paths.libretro_path, first_file, sizeof(default_paths.libretro_path)); else RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n"); }
static void find_and_set_first_file(void) { //Last fallback - we'll need to start the first executable file // we can find in the RetroArch cores directory char first_file[PATH_MAX]; find_first_libretro_core(first_file, sizeof(first_file), default_paths.core_dir, "SELF"); if(first_file) { fill_pathname_join(libretro_path, default_paths.core_dir, first_file, sizeof(libretro_path)); RARCH_LOG("libretro_path now set to: %s.\n", libretro_path); } else RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n"); }
/* Last fallback - we'll need to start the first executable file * we can find in the RetroArch cores directory. */ static void find_and_set_first_file(char *s, size_t len, const char *ext) { char first_file[PATH_MAX_LENGTH] = {0}; find_first_libretro_core(first_file, sizeof(first_file), g_defaults.dir.core, ext); if (string_is_empty(first_file)) { RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n"); return; } fill_pathname_join(s, g_defaults.dir.core, first_file, len); RARCH_LOG("libretro_path now set to: %s.\n", s); }
static void find_and_set_first_file(char *path, size_t sizeof_path, const char *ext) { /* Last fallback - we'll need to start the first executable file * we can find in the RetroArch cores directory. */ char first_file[PATH_MAX_LENGTH] = {0}; find_first_libretro_core(first_file, sizeof(first_file), g_defaults.core_dir, ext); if (first_file[0] != '\0') { fill_pathname_join(path, g_defaults.core_dir, first_file, sizeof_path); RARCH_LOG("libretro_path now set to: %s.\n", path); } else RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n"); }
static void find_and_set_first_file(char *s, size_t len, const char *ext) { /* Last fallback - we'll need to start the first executable file * we can find in the RetroArch cores directory. */ char first_file[PATH_MAX_LENGTH] = {0}; find_first_libretro_core(first_file, sizeof(first_file), g_defaults.dir.core, ext); if (string_is_empty(first_file)) { RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n"); return; } fill_pathname_join(s, g_defaults.dir.core, first_file, len); RARCH_LOG("libretro_path now set to: %s.\n", s); }