dolphin/Source/Core/DolphinWX/NetPlay
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
..
ChangeGameDialog.cpp DolphinWX: rename CGameListCtrl -> GameListCtrl 2017-06-23 17:25:52 -07:00
ChangeGameDialog.h DolphinWX: rename CGameListCtrl -> GameListCtrl 2017-06-23 17:25:52 -07:00
MD5Dialog.cpp Make DolphinQt2 netplay strings more like in DolphinWX 2017-08-10 15:58:04 +02:00
MD5Dialog.h Reformat all the things! 2018-04-12 21:28:39 +02:00
NetPlayLauncher.cpp NetPlayServer: handle port forwarding in constructor 2017-08-13 18:50:52 -07:00
NetPlayLauncher.h NetPlayServer: handle port forwarding in constructor 2017-08-13 18:50:52 -07:00
NetPlaySetupFrame.cpp More Capitalization Changes 2017-09-27 21:37:44 +02:00
NetPlaySetupFrame.h DolphinWX: rename CGameListCtrl -> GameListCtrl 2017-06-23 17:25:52 -07:00
NetWindow.cpp PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
NetWindow.h Rename Common::FifoQueue to Common::SPSCQueue 2017-08-23 17:00:52 -07:00
PadMapDialog.cpp DolphinWX: Put wx related headers before including anything else 2017-01-24 03:22:03 +01:00
PadMapDialog.h WX: HiDPI: NetPlay 2016-10-04 13:47:22 +11:00