Skip to content

Commit

Permalink
Merge pull request #7016 from lioncash/mem
Browse files Browse the repository at this point in the history
MemoryPatches: Minor changes
  • Loading branch information
JosJuice committed May 30, 2018
2 parents 6cb81ca + 397b27e commit 243f353
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Source/Core/Common/Debug/MemoryPatches.cpp
Expand Up @@ -6,11 +6,12 @@

#include <algorithm>
#include <sstream>
#include <utility>

namespace Common::Debug
{
MemoryPatch::MemoryPatch(u32 address_, std::vector<u8> value_)
: address(address_), value(value_), is_enabled(State::Enabled)
: address(address_), value(std::move(value_))
{
}

Expand Down
8 changes: 4 additions & 4 deletions Source/Core/Common/Debug/MemoryPatches.h
Expand Up @@ -20,12 +20,12 @@ struct MemoryPatch
Disabled
};

u32 address;
std::vector<u8> value;
State is_enabled;

MemoryPatch(u32 address, std::vector<u8> value);
MemoryPatch(u32 address, u32 value);

u32 address;
std::vector<u8> value;
State is_enabled = State::Enabled;
};

class MemoryPatches
Expand Down

0 comments on commit 243f353

Please sign in to comment.