Fixed three crashes and refactored

While a title is running any attempt to open another title will result in a crash this commit prevents these crashes via File->Open and File->Open Recent->Title

Opening a recent title with an invalid path caused a crash.
This commit is contained in:
MoistyMarley
2022-12-06 21:03:48 +00:00
parent 24bb4644ac
commit 4f165825ea
2 changed files with 56 additions and 42 deletions

View File

@@ -152,8 +152,8 @@ class EmulatorWindow {
void ShowFAQ();
void ShowBuildCommit();
xe::X_STATUS RunTitle(std::filesystem::path path);
void RunPreviouslyPlayedTitle();
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,