Recognise Metroid GC option as GC controller

This commit is contained in:
SirMangler 2021-11-15 19:06:58 +00:00
parent a47a2ea6e7
commit 2f0116a68c
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace Common
#endif
const std::string primehack_ver = "1.0.5";
const std::string scm_rev_str = "PrimeHack Pre-Release [v"+primehack_ver+"]";
const std::string scm_rev_str = "PrimeHack Release [v"+primehack_ver+"]";
const std::string scm_rev_git_str = SCM_REV_STR;
const std::string scm_desc_str = SCM_DESC_STR;

View File

@ -158,6 +158,7 @@ bool SIDevice_IsGCController(SIDevices type)
switch (type)
{
case SIDEVICE_GC_CONTROLLER:
case SIDEVICE_GC_METROID:
case SIDEVICE_WIIU_ADAPTER:
case SIDEVICE_GC_TARUKONGA:
case SIDEVICE_DANCEMAT:
@ -173,6 +174,7 @@ std::unique_ptr<ISIDevice> SIDevice_Create(const SIDevices device, const int por
{
switch (device)
{
case SIDEVICE_GC_METROID:
case SIDEVICE_GC_CONTROLLER:
return std::make_unique<CSIDevice_GCController>(device, port_number);