mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Remove rarch_console_libretro_mgmt.c
This commit is contained in:
parent
f5bbe76046
commit
71b632faba
@ -61,10 +61,6 @@ default_paths_t default_paths;
|
||||
|
||||
#include "../rarch_console_settings.c"
|
||||
|
||||
#ifdef HAVE_LIBRETRO_MANAGEMENT
|
||||
#include "../rarch_console_libretro_mgmt.c"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -32,6 +32,17 @@
|
||||
#define EXT_CGP_PRESETS "cgp|CGP"
|
||||
#define EXT_INPUT_PRESETS "cfg|CFG"
|
||||
|
||||
enum
|
||||
{
|
||||
EXTERN_LAUNCHER_SALAMANDER,
|
||||
#ifdef HAVE_MULTIMAN
|
||||
EXTERN_LAUNCHER_MULTIMAN,
|
||||
#endif
|
||||
#ifdef GEKKO
|
||||
EXTERN_LAUNCHER_CHANNEL,
|
||||
#endif
|
||||
};
|
||||
|
||||
enum {
|
||||
MENU_ITEM_LOAD_STATE = 0,
|
||||
MENU_ITEM_SAVE_STATE,
|
||||
|
@ -1,38 +0,0 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2013 - Hans-Kristian Arntzen
|
||||
* Copyright (C) 2011-2013 - 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "../boolean.h"
|
||||
#include "../file.h"
|
||||
#include "rarch_console.h"
|
||||
|
||||
#include "rarch_console_libretro_mgmt.h"
|
||||
|
||||
bool rarch_manage_libretro_extension_supported(const char *filename)
|
||||
{
|
||||
bool ext_supported = false;
|
||||
struct string_list *ext_list = NULL;
|
||||
const char *file_ext = path_get_extension(filename);
|
||||
const char *ext = rarch_console_get_rom_ext();
|
||||
|
||||
if (ext)
|
||||
ext_list = string_split(ext, "|");
|
||||
|
||||
if (ext_list && string_list_find_elem(ext_list, file_ext))
|
||||
ext_supported = true;
|
||||
|
||||
return ext_supported;
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2013 - Hans-Kristian Arntzen
|
||||
* Copyright (C) 2011-2013 - 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBRETRO_MGMT_H__
|
||||
#define LIBRETRO_MGMT_H__
|
||||
|
||||
#include "../boolean.h"
|
||||
|
||||
enum
|
||||
{
|
||||
EXTERN_LAUNCHER_SALAMANDER,
|
||||
#ifdef HAVE_MULTIMAN
|
||||
EXTERN_LAUNCHER_MULTIMAN,
|
||||
#endif
|
||||
#ifdef GEKKO
|
||||
EXTERN_LAUNCHER_CHANNEL,
|
||||
#endif
|
||||
};
|
||||
|
||||
bool rarch_manage_libretro_extension_supported(const char *filename);
|
||||
|
||||
#endif
|
@ -27,10 +27,6 @@
|
||||
|
||||
#include "../boolean.h"
|
||||
|
||||
#ifdef HAVE_LIBRETRO_MANAGEMENT
|
||||
#include "rarch_console_libretro_mgmt.h"
|
||||
#endif
|
||||
|
||||
#include "rarch_console_rzlib.h"
|
||||
|
||||
static int rarch_extract_currentfile_in_zip(unzFile uf, const char *current_dir, char *slash, char *write_filename, size_t write_filename_size, unsigned extract_zip_mode)
|
||||
@ -174,7 +170,16 @@ int rarch_extract_zipfile(const char *zip_path, char *first_file, size_t first_f
|
||||
{
|
||||
if(!found_first_file)
|
||||
{
|
||||
found_first_file = rarch_manage_libretro_extension_supported(write_filename);
|
||||
// is the extension of the file supported by the libretro core?
|
||||
struct string_list *ext_list = NULL;
|
||||
const char *file_ext = path_get_extension(write_filename);
|
||||
const char *ext = rarch_console_get_rom_ext();
|
||||
|
||||
if (ext)
|
||||
ext_list = string_split(ext, "|");
|
||||
|
||||
if (ext_list && string_list_find_elem(ext_list, file_ext))
|
||||
found_first_file = true;
|
||||
|
||||
if(found_first_file)
|
||||
snprintf(first_file, first_file_size, write_filename);
|
||||
|
@ -29,7 +29,6 @@
|
||||
#endif
|
||||
|
||||
#include "../../console/rarch_console.h"
|
||||
#include "../../console/rarch_console_libretro_mgmt.h"
|
||||
#include "../../console/rarch_console_input.h"
|
||||
#include "../../console/rarch_console_settings.h"
|
||||
#include "../../file.h"
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
#include "../../console/rarch_console.h"
|
||||
|
||||
#include "../../console/rarch_console_libretro_mgmt.h"
|
||||
#include "../../console/rarch_console_config.h"
|
||||
#include "../../console/rarch_console_settings.h"
|
||||
#include "../../conf/config_file.h"
|
||||
|
@ -38,7 +38,6 @@
|
||||
#endif
|
||||
|
||||
#include "../../console/rarch_console.h"
|
||||
#include "../../console/rarch_console_libretro_mgmt.h"
|
||||
#include "../../console/rarch_console_config.h"
|
||||
#include "../../conf/config_file.h"
|
||||
#include "../../conf/config_file_macros.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user