Config/IsSettingSaveable: Use class template argument deduction.

This commit is contained in:
Jordan Woyak 2024-11-02 16:22:54 -05:00
parent 97931a718f
commit 8da7a86b96

View File

@ -17,8 +17,8 @@ namespace ConfigLoaders
{ {
bool IsSettingSaveable(const Config::Location& config_location) bool IsSettingSaveable(const Config::Location& config_location)
{ {
static constexpr std::array<Config::System, 3> systems_not_saveable = { static constexpr std::array systems_not_saveable = {Config::System::GCPad, Config::System::WiiPad,
Config::System::GCPad, Config::System::WiiPad, Config::System::GCKeyboard}; Config::System::GCKeyboard};
if (std::find(begin(systems_not_saveable), end(systems_not_saveable), config_location.system) == if (std::find(begin(systems_not_saveable), end(systems_not_saveable), config_location.system) ==
end(systems_not_saveable)) end(systems_not_saveable))