Léo Lam 6763a3fce1 Config: Add support for enums
This makes it possible to use enums as the config type.
Default values are now clearer and there's no need for casts
when calling Config::Get/Set anymore.

In order to add support for enums, the common code was updated to
handle enums by using the underlying type when loading/saving settings.

A copy constructor is also provided for conversions from
`ConfigInfo<Enum>` to `ConfigInfo<underlying_type<Enum>>`
so that enum settings can still easily work with code that doesn't care
about the actual enum values (like Graphics{Choice,Radio} in DolphinQt2
which only treat the setting as an integer).
2018-05-12 18:10:26 +02:00
..
2018-05-12 18:10:26 +02:00
2016-12-06 20:33:53 +01:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2015-05-25 13:11:47 +02:00
2018-03-14 22:03:12 -04:00
2018-03-14 22:03:12 -04:00
2018-04-12 21:28:39 +02:00
2018-05-08 15:07:50 +02:00
2018-04-12 21:28:39 +02:00
2017-08-22 16:40:34 +02:00
2018-05-08 15:07:50 +02:00
2018-05-08 15:07:50 +02:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2018-01-20 17:08:47 +01:00
2018-03-28 17:33:34 +02:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2016-07-16 22:48:46 +02:00
2017-08-03 13:29:59 -07:00
2017-08-03 13:29:59 -07:00
2017-01-17 20:46:48 -05:00
2017-01-17 20:46:48 -05:00
2017-06-15 21:33:50 +02:00
2017-08-22 16:40:34 +02:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2018-05-11 09:19:30 -04:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00