diff options
| author | 2019-10-17 16:21:45 -0400 | |
|---|---|---|
| committer | 2019-10-17 16:21:47 -0400 | |
| commit | 6414d9e2e5f621710169f68f300cc6641c5e74a9 (patch) | |
| tree | 42831b3749cd99654410629a1e832f63bb07b234 /src | |
| parent | Merge pull request #2980 from lioncash/warn (diff) | |
| download | yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.tar.gz yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.tar.xz yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.zip | |
core/memory/cheat_engine: Resolve -Wreorder warnings
Amends the initializer lists to be ordered in the same manner that
they're declared within the class.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/memory/cheat_engine.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index b56cb0627..10821d452 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp | |||
| @@ -22,7 +22,7 @@ constexpr u32 KEYPAD_BITMASK = 0x3FFFFFF; | |||
| 22 | 22 | ||
| 23 | StandardVmCallbacks::StandardVmCallbacks(const Core::System& system, | 23 | StandardVmCallbacks::StandardVmCallbacks(const Core::System& system, |
| 24 | const CheatProcessMetadata& metadata) | 24 | const CheatProcessMetadata& metadata) |
| 25 | : system(system), metadata(metadata) {} | 25 | : metadata(metadata), system(system) {} |
| 26 | 26 | ||
| 27 | StandardVmCallbacks::~StandardVmCallbacks() = default; | 27 | StandardVmCallbacks::~StandardVmCallbacks() = default; |
| 28 | 28 | ||
| @@ -176,9 +176,8 @@ std::vector<CheatEntry> TextCheatParser::Parse(const Core::System& system, | |||
| 176 | 176 | ||
| 177 | CheatEngine::CheatEngine(Core::System& system, std::vector<CheatEntry> cheats, | 177 | CheatEngine::CheatEngine(Core::System& system, std::vector<CheatEntry> cheats, |
| 178 | const std::array<u8, 0x20>& build_id) | 178 | const std::array<u8, 0x20>& build_id) |
| 179 | : system{system}, core_timing{system.CoreTiming()}, vm{std::make_unique<StandardVmCallbacks>( | 179 | : vm{std::make_unique<StandardVmCallbacks>(system, metadata)}, |
| 180 | system, metadata)}, | 180 | cheats(std::move(cheats)), core_timing{system.CoreTiming()}, system{system} { |
| 181 | cheats(std::move(cheats)) { | ||
| 182 | metadata.main_nso_build_id = build_id; | 181 | metadata.main_nso_build_id = build_id; |
| 183 | } | 182 | } |
| 184 | 183 | ||