Use EnumFormatter to generate names for EXI devices

This simplifies the code in GameCubePane, and allows us to use the EXIDeviceType enum in error messages.
This commit is contained in:
Pokechu22
2022-01-11 17:10:13 -08:00
parent d354163fbe
commit fefde0481d
3 changed files with 67 additions and 20 deletions

View File

@ -95,7 +95,6 @@ protected:
constexpr explicit EnumFormatter(const array_type names) : m_names(std::move(names)) {}
private:
const array_type m_names;
char format_type = 'u';
};