1 /* RetroArch - A frontend for libretro. 2 * Copyright (C) 2011-2017 - Daniel De Matteis 3 * 4 * RetroArch is free software: you can redistribute it and/or modify it under the terms 5 * of the GNU General Public License as published by the Free Software Found- 6 * ation, either version 3 of the License, or (at your option) any later version. 7 * 8 * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 9 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 10 * PURPOSE. See the GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License along with RetroArch. 13 * If not, see <http://www.gnu.org/licenses/>. 14 */ 15 16 #ifndef __RARCH_DEFAULTS_H 17 #define __RARCH_DEFAULTS_H 18 19 #include <stdint.h> 20 21 #include <boolean.h> 22 23 #include <retro_miscellaneous.h> 24 25 #ifndef IS_SALAMANDER 26 #include "playlist.h" 27 #endif 28 29 enum default_dirs 30 { 31 DEFAULT_DIR_MENU_CONTENT = 0, 32 DEFAULT_DIR_CORE_ASSETS, 33 DEFAULT_DIR_MENU_CONFIG, 34 DEFAULT_DIR_AUTOCONFIG, 35 DEFAULT_DIR_AUDIO_FILTER, 36 DEFAULT_DIR_VIDEO_FILTER, 37 DEFAULT_DIR_ASSETS, 38 DEFAULT_DIR_CORE, 39 DEFAULT_DIR_CORE_INFO, 40 DEFAULT_DIR_OVERLAY, 41 #ifdef HAVE_VIDEO_LAYOUT 42 DEFAULT_DIR_VIDEO_LAYOUT, 43 #endif 44 DEFAULT_DIR_PORT, 45 DEFAULT_DIR_SHADER, 46 DEFAULT_DIR_SAVESTATE, 47 DEFAULT_DIR_RESAMPLER, 48 DEFAULT_DIR_SRAM, 49 DEFAULT_DIR_SCREENSHOT, 50 DEFAULT_DIR_SYSTEM, 51 DEFAULT_DIR_PLAYLIST, 52 DEFAULT_DIR_CONTENT_FAVORITES, 53 DEFAULT_DIR_CONTENT_HISTORY, 54 DEFAULT_DIR_CONTENT_IMAGE_HISTORY, 55 DEFAULT_DIR_CONTENT_MUSIC_HISTORY, 56 DEFAULT_DIR_CONTENT_VIDEO_HISTORY, 57 DEFAULT_DIR_REMAP, 58 DEFAULT_DIR_CACHE, 59 DEFAULT_DIR_WALLPAPERS, 60 DEFAULT_DIR_THUMBNAILS, 61 DEFAULT_DIR_DATABASE, 62 DEFAULT_DIR_CURSOR, 63 DEFAULT_DIR_CHEATS, 64 DEFAULT_DIR_RECORD_CONFIG, 65 DEFAULT_DIR_RECORD_OUTPUT, 66 DEFAULT_DIR_LOGS, 67 DEFAULT_DIR_LAST 68 }; 69 70 struct defaults 71 { 72 #ifndef IS_SALAMANDER 73 playlist_t *content_history; 74 playlist_t *content_favorites; 75 #ifdef HAVE_IMAGEVIEWER 76 playlist_t *image_history; 77 #endif 78 playlist_t *music_history; 79 #if defined(HAVE_FFMPEG) || defined(HAVE_MPV) 80 playlist_t *video_history; 81 #endif 82 #endif 83 int settings_out_latency; 84 #ifdef HAVE_MENU 85 unsigned menu_materialui_menu_color_theme; 86 #endif 87 88 float settings_video_refresh_rate; 89 90 char dirs [DEFAULT_DIR_LAST + 1][PATH_MAX_LENGTH]; 91 char path_config[PATH_MAX_LENGTH]; 92 char path_buildbot_server_url[255]; 93 char settings_menu[32]; 94 95 #ifdef HAVE_MENU 96 bool menu_materialui_menu_color_theme_enable; 97 bool menu_controls_menu_btn_ok; 98 bool menu_controls_menu_btn_cancel; 99 bool menu_controls_set; 100 #endif 101 bool overlay_set; 102 bool overlay_enable; 103 }; 104 105 bool dir_set_defaults(enum default_dirs dir_type, const char *dirpath); 106 107 /* Public data structures. */ 108 extern struct defaults g_defaults; 109 110 #endif 111