System: Create controllers dynamically based on config

This commit is contained in:
Connor McLaughlin
2019-12-14 23:29:26 +10:00
parent ea0845d5ad
commit c65279f944
6 changed files with 83 additions and 11 deletions

View File

@ -45,6 +45,9 @@ struct Settings
bool bios_patch_tty_enable = false;
bool bios_patch_fast_boot = false;
ControllerType controller_a_type = ControllerType::None;
ControllerType controller_b_type = ControllerType::None;
std::string memory_card_a_path;
std::string memory_card_b_path;
@ -63,4 +66,8 @@ struct Settings
static std::optional<GPURenderer> ParseRendererName(const char* str);
static const char* GetRendererName(GPURenderer renderer);
static const char* GetRendererDisplayName(GPURenderer renderer);
static std::optional<ControllerType> ParseControllerTypeName(const char* str);
static const char* GetControllerTypeName(ControllerType type);
static const char* GetControllerTypeDisplayName(ControllerType type);
};