dolphin/Source/Core/DolphinQt2/Settings
Lioncash 6f473b96d0 PowerPC: Convert CPUCore enum into an enum class
Makes the enum values strongly-typed and prevents the identifiers from
polluting the PowerPC namespace. This also cleans up the parameters of
some functions where we were accepting an ambiguous int type and
expecting the correct values to be passed in.

Now those parameters accept a PowerPC::CPUCore type only, making it
immediately obvious which values should be passed in. It also turns out
we were storing these core types into other structures as plain ints,
which have also been corrected.

As this type is used directly with the configuration code, we need to
provide our own overloaded insertion (<<) and extraction (>>) operators
in order to make it compatible with it. These are fairly trivial to
implement, so there's no issue here.

A minor adjustment to TryParse() was required, as our generic function
was doing the following:

N tmp = 0;

which is problematic, as custom types may not be able to have that
assignment performed (e.g. strongly-typed enums), so we change this to:

N tmp;

which is sufficient, as the value is attempted to be initialized
immediately under that statement.
2018-06-15 10:27:59 -04:00
..
AdvancedPane.cpp Qt/AdvancedPane: Show seconds in custom RTC 2018-05-28 13:37:46 +02:00
AdvancedPane.h Qt: Advanced config pane 2017-09-15 10:35:01 -07:00
AudioPane.cpp Qt/macOS: Make configuration layout consistent with other platforms 2018-06-12 15:45:33 +02:00
AudioPane.h AudioCommon: Implement WASAPI 2018-05-26 13:08:10 +02:00
GameCubePane.cpp Qt/GameCubePane: Fix memcard browsing starting in working directory instead of User/GC/ directory 2018-06-14 09:11:54 -04:00
GameCubePane.h DolphinQt2: Add missing Q_OBJECT macro to all QObject-related classes missing it 2018-05-13 17:33:32 -04:00
GeneralPane.cpp PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
GeneralPane.h DolphinQt2: Provide proper CPU core options for non-x64 systems 2018-05-26 15:16:08 +02:00
InterfacePane.cpp Qt/macOS: Make configuration layout consistent with other platforms 2018-06-12 15:45:33 +02:00
InterfacePane.h Qt: Allow custom stylesheets 2018-05-08 15:07:50 +02:00
PathPane.cpp Qt: Sort includes properly 2018-05-28 04:31:38 +02:00
PathPane.h Qt/PathPane: Disable "Remove" button when not applicable 2018-05-15 20:13:12 +02:00
USBDeviceAddToWhitelistDialog.cpp Qt: Sort includes properly 2018-05-28 04:31:38 +02:00
USBDeviceAddToWhitelistDialog.h Qt: Implement Wiimote speaker volume slider and Wiimote motor toggle, rebased all changes... included fixed based on feedback by ligfx 2018-02-07 18:46:13 +01:00
WiiPane.cpp Qt: Sort includes properly 2018-05-28 04:31:38 +02:00
WiiPane.h Qt: Implement Wiimote speaker volume slider and Wiimote motor toggle, rebased all changes... included fixed based on feedback by ligfx 2018-02-07 18:46:13 +01:00