Qt: Add recent games list
This commit is contained in:
@@ -108,6 +108,9 @@ struct EmulatorConfig {
|
||||
std::filesystem::path defaultRomPath = "";
|
||||
std::filesystem::path filePath;
|
||||
|
||||
static constexpr size_t maxRecentGames = 8;
|
||||
std::vector<std::filesystem::path> recentlyPlayed;
|
||||
|
||||
// Frontend window settings
|
||||
struct WindowSettings {
|
||||
static constexpr int defaultX = 200;
|
||||
@@ -132,6 +135,8 @@ struct EmulatorConfig {
|
||||
void load();
|
||||
void save();
|
||||
|
||||
void addToRecentGames(const std::filesystem::path& path);
|
||||
|
||||
static LanguageCodes languageCodeFromString(std::string inString);
|
||||
static const char* languageCodeToString(LanguageCodes code);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user