diff --git a/Makefile.common b/Makefile.common index e067e36b7a..d252bade93 100644 --- a/Makefile.common +++ b/Makefile.common @@ -224,7 +224,6 @@ OBJ += frontend/frontend.o \ dynamic.o \ cores/dynamic_dummy.o \ $(LIBRETRO_COMM_DIR)/queues/message_queue.o \ - managers/core_manager.o \ managers/state_manager.o \ gfx/drivers_font_renderer/bitmapfont.o \ tasks/task_autodetect.o \ diff --git a/griffin/griffin.c b/griffin/griffin.c index 73dbd8f40d..cf3c606a49 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -139,7 +139,6 @@ CONFIG FILE #include "../libretro-common/file/config_file.c" #include "../libretro-common/file/config_file_userdata.c" -#include "../managers/core_manager.c" #include "../managers/core_option_manager.c" /*============================================================ diff --git a/managers/core_manager.c b/managers/core_manager.c deleted file mode 100644 index ac5ce69171..0000000000 --- a/managers/core_manager.c +++ /dev/null @@ -1,71 +0,0 @@ -/* RetroArch - A frontend for libretro. - * Copyright (C) 2011-2017 - Daniel De Matteis - * - * RetroArch is free software: you can redistribute it and/or modify it under the terms - * of the GNU General Public License as published by the Free Software Found- - * ation, either version 3 of the License, or (at your option) any later version. - * - * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with RetroArch. - * If not, see . - */ - -#include -#include - -#include - -#include -#include -#include - -#include "../configuration.h" -#include "../verbosity.h" - -/*We need to set libretro to the first entry in the cores - * directory so that it will be saved to the config file - */ -bool find_libretro_core(char *fullpath, - size_t sizeof_fullpath, char *needle, const char * ext) -{ - size_t i; - settings_t *settings = config_get_ptr(); - const char *dir = settings->paths.directory_libretro; - struct string_list *list = dir_list_new(dir, ext, false, true, false, false); - - if (!list) - { - RARCH_ERR("Couldn't read directory." - " Cannot infer default libretro core.\n"); - return false; - } - - RARCH_LOG("Searching for valid libretro implementation in: \"%s\".\n", - dir); - - for (i = 0; i < list->size; i++) - { - char fname[PATH_MAX_LENGTH] = {0}; - const char *libretro_elem = (const char*)list->elems[i].data; - - RARCH_LOG("Checking library: \"%s\".\n", libretro_elem); - - if (!libretro_elem) - continue; - - fill_pathname_base(fname, libretro_elem, sizeof(fname)); - - if (!strstr(fname, needle)) - continue; - - strlcpy(fullpath, libretro_elem, sizeof_fullpath); - break; - } - - dir_list_free(list); - - return true; -} diff --git a/managers/core_manager.h b/managers/core_manager.h deleted file mode 100644 index c89cefe570..0000000000 --- a/managers/core_manager.h +++ /dev/null @@ -1,30 +0,0 @@ -/* RetroArch - A frontend for libretro. - * Copyright (C) 2010-2014 - Hans-Kristian Arntzen - * Copyright (C) 2011-2017 - Daniel De Matteis - * - * RetroArch is free software: you can redistribute it and/or modify it under the terms - * of the GNU General Public License as published by the Free Software Found- - * ation, either version 3 of the License, or (at your option) any later version. - * - * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with RetroArch. - * If not, see . - */ - -#ifndef __CORE_MANAGER_H -#define __CORE_MANAGER_H - -#include -#include - -RETRO_BEGIN_DECLS - -bool find_libretro_core(char *fullpath, - size_t sizeof_fullpath, char *needle, const char * ext); - -RETRO_END_DECLS - -#endif