Merge pull request #7016 from lioncash/mem

MemoryPatches: Minor changes
This commit is contained in:
JosJuice 2018-05-30 07:45:34 +02:00 committed by GitHub
commit 243f353688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -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_))
{
}

View File

@ -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