ui_settings.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. namespace UISettings {
  12. using ContextualShortcut = std::pair<QString, int>;
  13. using Shortcut = std::pair<QString, ContextualShortcut>;
  14. using Themes = std::array<std::pair<const char*, const char*>, 2>;
  15. extern const Themes themes;
  16. struct Values {
  17. QByteArray geometry;
  18. QByteArray state;
  19. QByteArray renderwindow_geometry;
  20. QByteArray gamelist_header_state;
  21. QByteArray microprofile_geometry;
  22. bool microprofile_visible;
  23. bool single_window_mode;
  24. bool fullscreen;
  25. bool display_titlebar;
  26. bool show_filter_bar;
  27. bool show_status_bar;
  28. bool confirm_before_closing;
  29. bool first_start;
  30. // Discord RPC
  31. bool enable_discord_presence;
  32. QString roms_path;
  33. QString symbols_path;
  34. QString gamedir;
  35. bool gamedir_deepscan;
  36. QStringList recent_files;
  37. QString theme;
  38. // Shortcut name <Shortcut, context>
  39. std::vector<Shortcut> shortcuts;
  40. uint32_t callout_flags;
  41. // logging
  42. bool show_console;
  43. // Game List
  44. bool show_unknown;
  45. uint32_t icon_size;
  46. uint8_t row_1_text_id;
  47. uint8_t row_2_text_id;
  48. std::atomic_bool is_game_list_reload_pending{false};
  49. };
  50. extern Values values;
  51. } // namespace UISettings