yuzu qt: Start games from context menu

This connects the BootGame function to the context menu. In addition,
there is an option to boot without using the custom configuration.
This commit is contained in:
lat9nq
2021-06-07 20:22:39 -04:00
parent df91c9f5e6
commit 5ac018d1df
4 changed files with 23 additions and 3 deletions

View File

@ -39,6 +39,11 @@ class GameListPlaceholder;
class QtSoftwareKeyboardDialog;
enum class StartGameType {
Normal, // Can use custom configuration
Global, // Only uses global configuration
};
namespace Core::Frontend {
struct ControllerParameters;
struct InlineAppearParameters;
@ -181,7 +186,8 @@ private:
void AllowOSSleep();
bool LoadROM(const QString& filename, std::size_t program_index);
void BootGame(const QString& filename, std::size_t program_index = 0);
void BootGame(const QString& filename, std::size_t program_index = 0,
StartGameType with_config = StartGameType::Normal);
void ShutdownGame();
void ShowTelemetryCallout();