ui_settings.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. bool show_add_ons;
  46. uint32_t icon_size;
  47. uint8_t row_1_text_id;
  48. uint8_t row_2_text_id;
  49. std::atomic_bool is_game_list_reload_pending{false};
  50. };
  51. extern Values values;
  52. } // namespace UISettings