ui_settings.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // Copyright 2016 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <array>
  6. #include <atomic>
  7. #include <vector>
  8. #include <QByteArray>
  9. #include <QString>
  10. #include <QStringList>
  11. #include "common/common_types.h"
  12. namespace UISettings {
  13. using ContextualShortcut = std::pair<QString, int>;
  14. struct Shortcut {
  15. QString name;
  16. QString group;
  17. ContextualShortcut shortcut;
  18. };
  19. using Themes = std::array<std::pair<const char*, const char*>, 2>;
  20. extern const Themes themes;
  21. struct Values {
  22. QByteArray geometry;
  23. QByteArray state;
  24. QByteArray renderwindow_geometry;
  25. QByteArray gamelist_header_state;
  26. QByteArray microprofile_geometry;
  27. bool microprofile_visible;
  28. bool single_window_mode;
  29. bool fullscreen;
  30. bool display_titlebar;
  31. bool show_filter_bar;
  32. bool show_status_bar;
  33. bool confirm_before_closing;
  34. bool first_start;
  35. bool select_user_on_boot;
  36. // Discord RPC
  37. bool enable_discord_presence;
  38. u16 screenshot_resolution_factor;
  39. QString roms_path;
  40. QString symbols_path;
  41. QString screenshot_path;
  42. QString gamedir;
  43. bool gamedir_deepscan;
  44. QStringList recent_files;
  45. QString theme;
  46. // Shortcut name <Shortcut, context>
  47. std::vector<Shortcut> shortcuts;
  48. uint32_t callout_flags;
  49. // logging
  50. bool show_console;
  51. // Controllers
  52. int profile_index;
  53. // Game List
  54. bool show_unknown;
  55. bool show_add_ons;
  56. uint32_t icon_size;
  57. uint8_t row_1_text_id;
  58. uint8_t row_2_text_id;
  59. std::atomic_bool is_game_list_reload_pending{false};
  60. };
  61. extern Values values;
  62. } // namespace UISettings