defaults.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. #ifndef __RARCH_DEFAULTS_H
  16. #define __RARCH_DEFAULTS_H
  17. #include <stdint.h>
  18. #include <boolean.h>
  19. #include <retro_miscellaneous.h>
  20. #ifndef IS_SALAMANDER
  21. #include "playlist.h"
  22. #endif
  23. enum default_dirs
  24. {
  25. DEFAULT_DIR_MENU_CONTENT = 0,
  26. DEFAULT_DIR_CORE_ASSETS,
  27. DEFAULT_DIR_MENU_CONFIG,
  28. DEFAULT_DIR_AUTOCONFIG,
  29. DEFAULT_DIR_AUDIO_FILTER,
  30. DEFAULT_DIR_VIDEO_FILTER,
  31. DEFAULT_DIR_ASSETS,
  32. #ifdef _3DS
  33. DEFAULT_DIR_BOTTOM_ASSETS,
  34. #endif
  35. DEFAULT_DIR_CORE,
  36. DEFAULT_DIR_CORE_INFO,
  37. #ifdef HAVE_OVERLAY
  38. DEFAULT_DIR_OVERLAY,
  39. #endif
  40. DEFAULT_DIR_PORT,
  41. DEFAULT_DIR_SHADER,
  42. DEFAULT_DIR_SAVESTATE,
  43. DEFAULT_DIR_RESAMPLER,
  44. DEFAULT_DIR_SRAM,
  45. DEFAULT_DIR_SCREENSHOT,
  46. DEFAULT_DIR_SYSTEM,
  47. DEFAULT_DIR_PLAYLIST,
  48. DEFAULT_DIR_CONTENT_FAVORITES,
  49. DEFAULT_DIR_CONTENT_HISTORY,
  50. DEFAULT_DIR_CONTENT_IMAGE_HISTORY,
  51. DEFAULT_DIR_CONTENT_MUSIC_HISTORY,
  52. DEFAULT_DIR_CONTENT_VIDEO_HISTORY,
  53. DEFAULT_DIR_REMAP,
  54. DEFAULT_DIR_CACHE,
  55. DEFAULT_DIR_WALLPAPERS,
  56. DEFAULT_DIR_THUMBNAILS,
  57. DEFAULT_DIR_DATABASE,
  58. DEFAULT_DIR_CHEATS,
  59. DEFAULT_DIR_RECORD_CONFIG,
  60. DEFAULT_DIR_RECORD_OUTPUT,
  61. DEFAULT_DIR_LOGS,
  62. DEFAULT_DIR_LAST
  63. };
  64. struct defaults
  65. {
  66. #ifndef IS_SALAMANDER
  67. playlist_t *content_history;
  68. playlist_t *content_favorites;
  69. #ifdef HAVE_IMAGEVIEWER
  70. playlist_t *image_history;
  71. #endif
  72. playlist_t *music_history;
  73. #if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
  74. playlist_t *video_history;
  75. #endif
  76. #endif
  77. int settings_out_latency;
  78. #ifdef HAVE_MENU
  79. unsigned menu_materialui_menu_color_theme;
  80. #endif
  81. float settings_video_refresh_rate;
  82. char dirs [DEFAULT_DIR_LAST + 1][PATH_MAX_LENGTH];
  83. char path_config[PATH_MAX_LENGTH];
  84. char path_buildbot_server_url[255];
  85. char settings_menu[32];
  86. #ifdef HAVE_MENU
  87. bool menu_materialui_menu_color_theme_enable;
  88. bool menu_controls_menu_btn_ok;
  89. bool menu_controls_menu_btn_cancel;
  90. bool menu_controls_set;
  91. #endif
  92. bool overlay_set;
  93. bool overlay_enable;
  94. };
  95. bool dir_set_defaults(enum default_dirs dir_type, const char *dirpath);
  96. /* Public data structures. */
  97. extern struct defaults g_defaults;
  98. #endif