mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-28 22:03:13 -05:00
Code cleanup
This commit is contained in:
42
source/plugin/RelocationData.cpp
Normal file
42
source/plugin/RelocationData.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
#include "RelocationData.h"
|
||||
|
||||
RelocationData::RelocationData(const char type,
|
||||
const size_t offset,
|
||||
const int32_t addend,
|
||||
void *destination,
|
||||
std::string name,
|
||||
std::shared_ptr<ImportRPLInformation> rplInfo) : mType(type),
|
||||
mOffset(offset),
|
||||
mAddend(addend),
|
||||
mDestination(destination),
|
||||
mName(std::move(name)),
|
||||
mRPLInfo(std::move(rplInfo)) {
|
||||
}
|
||||
|
||||
RelocationData::RelocationData(const RelocationData &o2) = default;
|
||||
|
||||
RelocationData::~RelocationData() = default;
|
||||
|
||||
[[nodiscard]] char RelocationData::getType() const {
|
||||
return mType;
|
||||
}
|
||||
|
||||
[[nodiscard]] size_t RelocationData::getOffset() const {
|
||||
return mOffset;
|
||||
}
|
||||
|
||||
[[nodiscard]] int32_t RelocationData::getAddend() const {
|
||||
return mAddend;
|
||||
}
|
||||
|
||||
[[nodiscard]] const void *RelocationData::getDestination() const {
|
||||
return mDestination;
|
||||
}
|
||||
|
||||
[[nodiscard]] const std::string &RelocationData::getName() const {
|
||||
return mName;
|
||||
}
|
||||
|
||||
[[nodiscard]] const ImportRPLInformation &RelocationData::getImportRPLInformation() const {
|
||||
return *mRPLInfo;
|
||||
}
|
||||
Reference in New Issue
Block a user