dolphin/Source/Core/DolphinWX
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
..
Cheats Reformat all the things! 2018-04-12 21:28:39 +02:00
Config PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
Debugger Gekko: Centralize bitmasking of the FPSCR within UReg_FPSCR 2018-06-12 14:15:50 -04:00
Input ControllerEmu: Use enum instead of bool for translatability 2018-04-13 13:04:26 +02:00
ISOProperties Make the support for unencrypted Wii disc images less broken 2018-05-23 08:40:37 +02:00
NetPlay PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
AboutDolphin.cpp
AboutDolphin.h
AuiToolBar.h
CMakeLists.txt Qt/Wx: Turn Qt into the default interface 2018-04-21 17:54:00 +02:00
ControllerConfigDiag.cpp Remove Hybrid Wii Remote 2018-04-17 22:40:21 +02:00
ControllerConfigDiag.h
DolphinSlider.cpp
DolphinSlider.h
DolphinWX.manifest
DolphinWX.rc
DolphinWX.vcxproj Win32/FileUtil: Fix IsDirectory() not working for certain directories 2018-05-04 23:53:41 +02:00
DolphinWX.vcxproj.filters Unify ISOFile (wx) with GameFile (Qt) and put it in UICommon 2018-03-09 13:08:38 +01:00
DolphinWX.vcxproj.user
FifoPlayerDlg.cpp Assert: Uppercase assertion macros 2018-03-14 22:03:12 -04:00
FifoPlayerDlg.h
Frame.cpp Add OSD message for Volume Hotkeys 2018-06-06 17:11:43 +02:00
Frame.h
FrameAui.cpp
FrameTools.cpp PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
GameListCtrl.cpp Don't store custom names from TitleDatabase in GameFileCache 2018-06-04 07:45:22 +02:00
GameListCtrl.h Don't store custom names from TitleDatabase in GameFileCache 2018-06-04 07:45:22 +02:00
Globals.h Wx: Implement the new debugger icons 2018-04-14 17:22:04 -04:00
Info.plist.in Qt/Wx: Turn Qt into the default interface 2018-04-21 17:54:00 +02:00
LogConfigWindow.cpp
LogConfigWindow.h
LogWindow.cpp Reformat all the things! 2018-04-12 21:28:39 +02:00
LogWindow.h
Main.cpp Common: Move host communication enum to Host.h 2018-05-28 14:34:59 -04:00
Main.h
MainMenuBar.cpp PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
MainMenuBar.h Reformat all the things! 2018-04-12 21:28:39 +02:00
MainToolBar.cpp Wx: Implement the new debugger icons 2018-04-14 17:22:04 -04:00
MainToolBar.h Wx: Implement the new debugger icons 2018-04-14 17:22:04 -04:00
MemcardManager.cpp
MemcardManager.h
PatchAddEdit.cpp PatchEngine: Make PatchType an enum class 2018-05-13 15:46:51 -04:00
PatchAddEdit.h
PostProcessingConfigDiag.cpp
PostProcessingConfigDiag.h Reformat all the things! 2018-04-12 21:28:39 +02:00
resource.h
SoftwareVideoConfigDialog.cpp
SoftwareVideoConfigDialog.h
TASInputDlg.cpp Reformat all the things! 2018-04-12 21:28:39 +02:00
TASInputDlg.h
UINeedsControllerState.cpp
UINeedsControllerState.h
VideoConfigDiag.cpp Config: Add support for enums 2018-05-12 18:10:26 +02:00
VideoConfigDiag.h Implement "Skip" ubershader mode 2018-03-26 01:57:41 +10:00
WxEventUtils.cpp
WxEventUtils.h
WxUtils.cpp Unify ISOFile (wx) with GameFile (Qt) and put it in UICommon 2018-03-09 13:08:38 +01:00
WxUtils.h Unify ISOFile (wx) with GameFile (Qt) and put it in UICommon 2018-03-09 13:08:38 +01:00