Added reccently opened titles list
This commit is contained in:
@@ -28,6 +28,13 @@
|
||||
namespace xe {
|
||||
namespace app {
|
||||
|
||||
struct RecentTitleEntry {
|
||||
std::string title_name;
|
||||
std::filesystem::path path_to_file;
|
||||
// uint32_t run_count;
|
||||
// uint64_t last_run_time;
|
||||
};
|
||||
|
||||
class EmulatorWindow {
|
||||
public:
|
||||
enum : size_t {
|
||||
@@ -145,6 +152,12 @@ class EmulatorWindow {
|
||||
void ShowFAQ();
|
||||
void ShowBuildCommit();
|
||||
|
||||
void RunRecentlyPlayedTitle(std::filesystem::path path_to_file);
|
||||
void FillRecentlyLaunchedTitlesMenu(xe::ui::MenuItem* recent_menu);
|
||||
void ReadRecentlyLaunchedTitles();
|
||||
void AddRecentlyLaunchedTitle(std::filesystem::path path_to_file,
|
||||
std::string title_name);
|
||||
|
||||
Emulator* emulator_;
|
||||
ui::WindowedAppContext& app_context_;
|
||||
EmulatorWindowListener window_listener_;
|
||||
@@ -161,6 +174,8 @@ class EmulatorWindow {
|
||||
bool initializing_shader_storage_ = false;
|
||||
|
||||
std::unique_ptr<DisplayConfigDialog> display_config_dialog_;
|
||||
|
||||
std::vector<RecentTitleEntry> recently_launched_titles_;
|
||||
};
|
||||
|
||||
} // namespace app
|
||||
|
||||
Reference in New Issue
Block a user