dolphin/Source
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
..
Android PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
Core PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
DSPSpy DSPSpy: Add a test for accelerator loop 2017-09-22 20:17:38 +02:00
DSPTool Common: Move host communication enum to Host.h 2018-05-28 14:34:59 -04:00
PCH msvc: bump the required _MSC_FULL_VER 2017-06-03 18:20:41 -07:00
UnitTests PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
VSProps Remove SOIL altogether from the project. 2018-05-20 13:44:42 +02:00
.clang-format Reformat all the things! 2018-04-12 21:28:39 +02:00
CMakeLists.txt CMakeLists: Remove add_dolphin_library macro 2018-04-02 08:31:56 -04:00
dolphin-emu.sln Make DolphinQT2 the default project in dolphin-emu.sln 2018-05-29 20:26:51 -04:00