RetroArch/paths.h

83 lines
2.0 KiB
C
Raw Normal View History

2016-09-17 12:10:46 +02:00
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2016 - 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 __PATHS_H
#define __PATHS_H
#include <boolean.h>
#include <retro_common_api.h>
2016-09-25 15:49:09 +02:00
#include <lists/string_list.h>
2016-09-17 12:10:46 +02:00
RETRO_BEGIN_DECLS
2016-09-17 15:16:52 +02:00
enum rarch_content_type
{
RARCH_CONTENT_NONE = 0,
RARCH_CONTENT_MOVIE,
RARCH_CONTENT_MUSIC,
RARCH_CONTENT_IMAGE
};
2016-09-29 07:36:09 +02:00
enum rarch_path_type
{
RARCH_PATH_NONE = 0,
2016-09-29 07:46:21 +02:00
RARCH_PATH_CORE,
RARCH_PATH_NAMES,
2016-09-29 07:46:21 +02:00
RARCH_PATH_CONFIG,
2016-09-29 07:40:14 +02:00
RARCH_PATH_CONTENT,
2016-09-29 07:49:54 +02:00
RARCH_PATH_CONFIG_APPEND,
2016-09-29 07:40:14 +02:00
RARCH_PATH_CORE_OPTIONS,
2016-09-29 07:49:54 +02:00
RARCH_PATH_DEFAULT_SHADER_PRESET,
2016-09-29 08:46:41 +02:00
RARCH_PATH_BASENAME,
RARCH_PATH_SUBSYSTEM
2016-09-29 07:36:09 +02:00
};
2016-09-25 15:49:09 +02:00
void path_deinit_subsystem(void);
2016-09-19 03:03:31 +02:00
void path_deinit_savefile(void);
void path_init_savefile(void);
void path_fill_names(void);
2016-09-29 07:40:14 +02:00
bool path_set(enum rarch_path_type type, const char *path);
2016-09-25 15:49:09 +02:00
2016-09-17 12:16:11 +02:00
void path_set_redirect(void);
2016-09-17 12:19:17 +02:00
void path_set_special(char **argv, unsigned num_content);
2016-09-17 12:10:46 +02:00
void path_set_basename(const char *path);
2016-10-03 16:16:55 +02:00
size_t path_get_realsize(enum rarch_path_type type);
2016-09-25 15:49:09 +02:00
struct string_list *path_get_subsystem_list(void);
2016-10-03 15:44:20 +02:00
char *path_get_ptr(enum rarch_path_type type);
2016-09-29 08:23:41 +02:00
const char *path_get(enum rarch_path_type type);
2016-09-25 15:49:09 +02:00
2016-09-30 04:31:19 +02:00
void path_clear(enum rarch_path_type type);
2016-09-17 14:04:19 +02:00
2016-09-17 13:47:26 +02:00
void path_clear_all(void);
2016-09-30 04:43:16 +02:00
bool path_is_empty(enum rarch_path_type type);
2016-09-17 16:31:14 +02:00
enum rarch_content_type path_is_media_type(const char *path);
2016-09-17 12:10:46 +02:00
RETRO_END_DECLS
#endif