[App] Misc App fixes

- Display xex filenames in title selection.
- Fixed fullscreen controller hotkeys executing from a non-UI thread.
- Fixed recent_titles_entry_amount not disabling if set to <= 0.
- Use RunTitle instead of LaunchPath which does more error checking.
This commit is contained in:
Adrian
2023-07-10 20:41:44 +01:00
committed by Radosław Gliński
parent a620397b35
commit 7c5b9372e7
3 changed files with 31 additions and 13 deletions

View File

@@ -615,7 +615,8 @@ void EmulatorApp::EmulatorThread() {
// Normalize the path and make absolute.
auto abs_path = std::filesystem::absolute(path);
result = app_context().CallInUIThread([this, abs_path]() { return emulator_->LaunchPath(abs_path); });
result = app_context().CallInUIThread(
[this, abs_path]() { return emulator_window_->RunTitle(abs_path); });
if (XFAILED(result)) {
xe::FatalError(fmt::format("Failed to launch target: {:08X}", result));
app_context().RequestDeferredQuit();