ui_settings.h 920 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 <vector>
  6. #include <QByteArray>
  7. #include <QString>
  8. #include <QStringList>
  9. namespace UISettings {
  10. using ContextualShortcut = std::pair<QString, int>;
  11. using Shortcut = std::pair<QString, ContextualShortcut>;
  12. struct Values {
  13. QByteArray geometry;
  14. QByteArray state;
  15. QByteArray renderwindow_geometry;
  16. QByteArray gamelist_header_state;
  17. QByteArray microprofile_geometry;
  18. bool microprofile_visible;
  19. bool single_window_mode;
  20. bool display_titlebar;
  21. bool confirm_before_closing;
  22. bool first_start;
  23. QString roms_path;
  24. QString symbols_path;
  25. QString gamedir;
  26. bool gamedir_deepscan;
  27. QStringList recent_files;
  28. // Shortcut name <Shortcut, context>
  29. std::vector<Shortcut> shortcuts;
  30. };
  31. extern Values values;
  32. }