diff options
author | fearlessTobi <thm.frey@gmail.com> | 2019-05-01 23:21:04 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2019-09-04 16:47:32 +0200 |
commit | 2d8eba5bafd7fe9da00c8a57c605a503c3ece478 (patch) | |
tree | c3bc64c33ab43f6bd0d7bb6f4ec63b11490a41e8 /src/yuzu/uisettings.h | |
parent | 7fc5af36226676d2ebc07a7a3d3cd82c536f206a (diff) |
yuzu: Add support for multiple game directories
Ported from https://github.com/citra-emu/citra/pull/3617.
Diffstat (limited to 'src/yuzu/uisettings.h')
-rw-r--r-- | src/yuzu/uisettings.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/yuzu/uisettings.h b/src/yuzu/uisettings.h index a62cd6911..76348db69 100644 --- a/src/yuzu/uisettings.h +++ b/src/yuzu/uisettings.h @@ -8,6 +8,7 @@ #include <atomic> #include <vector> #include <QByteArray> +#include <QMetaType> #include <QString> #include <QStringList> #include "common/common_types.h" @@ -25,6 +26,18 @@ struct Shortcut { using Themes = std::array<std::pair<const char*, const char*>, 2>; extern const Themes themes; +struct GameDir { + QString path; + bool deep_scan; + bool expanded; + bool operator==(const GameDir& rhs) const { + return path == rhs.path; + }; + bool operator!=(const GameDir& rhs) const { + return !operator==(rhs); + }; +}; + struct Values { QByteArray geometry; QByteArray state; @@ -55,8 +68,9 @@ struct Values { QString roms_path; QString symbols_path; QString screenshot_path; - QString game_directory_path; - bool game_directory_deepscan; + QString game_dir_deprecated; + bool game_dir_deprecated_deepscan; + QList<UISettings::GameDir> game_dirs; QStringList recent_files; QString theme; @@ -84,3 +98,5 @@ struct Values { extern Values values; } // namespace UISettings + +Q_DECLARE_METATYPE(UISettings::GameDir*); |