summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-17 22:21:45 +0200
committerLioncash <mathew1800@gmail.com>2019-10-17 22:21:47 +0200
commit6414d9e2e5f621710169f68f300cc6641c5e74a9 (patch)
tree42831b3749cd99654410629a1e832f63bb07b234 /src
parentMerge pull request #2980 from lioncash/warn (diff)
downloadyuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.tar
yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.tar.gz
yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.tar.bz2
yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.tar.lz
yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.tar.xz
yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.tar.zst
yuzu-6414d9e2e5f621710169f68f300cc6641c5e74a9.zip
Diffstat (limited to '')
-rw-r--r--src/core/memory/cheat_engine.cpp7
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;
StandardVmCallbacks::StandardVmCallbacks(const Core::System& system,
const CheatProcessMetadata& metadata)
- : system(system), metadata(metadata) {}
+ : metadata(metadata), system(system) {}
StandardVmCallbacks::~StandardVmCallbacks() = default;
@@ -176,9 +176,8 @@ std::vector<CheatEntry> TextCheatParser::Parse(const Core::System& system,
CheatEngine::CheatEngine(Core::System& system, std::vector<CheatEntry> cheats,
const std::array<u8, 0x20>& build_id)
- : system{system}, core_timing{system.CoreTiming()}, vm{std::make_unique<StandardVmCallbacks>(
- system, metadata)},
- cheats(std::move(cheats)) {
+ : vm{std::make_unique<StandardVmCallbacks>(system, metadata)},
+ cheats(std::move(cheats)), core_timing{system.CoreTiming()}, system{system} {
metadata.main_nso_build_id = build_id;
}