mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-22 04:39:17 +01:00
Add missing copy constructors
This commit is contained in:
parent
7247ad3093
commit
3b9f4a9a51
@ -23,6 +23,12 @@
|
|||||||
|
|
||||||
class PluginContainer {
|
class PluginContainer {
|
||||||
public:
|
public:
|
||||||
|
PluginContainer(const PluginContainer& other) {
|
||||||
|
this->pluginData = other.pluginData;
|
||||||
|
this->pluginInformation = other.pluginInformation;
|
||||||
|
this->metaInformation = other.metaInformation;
|
||||||
|
}
|
||||||
|
|
||||||
PluginContainer() {
|
PluginContainer() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#include "PluginData.h"
|
#include "PluginData.h"
|
||||||
|
|
||||||
|
|
||||||
|
PluginData::PluginData(const PluginData &obj) {
|
||||||
|
this->buffer = obj.buffer;
|
||||||
|
this->heapHandle = obj.heapHandle;
|
||||||
|
this->memoryType = obj.memoryType;
|
||||||
|
this->length = obj.length;
|
||||||
|
loadReader();
|
||||||
|
}
|
||||||
|
|
||||||
void PluginData::freeMemory() {
|
void PluginData::freeMemory() {
|
||||||
if (buffer == NULL) {
|
if (buffer == NULL) {
|
||||||
return;
|
return;
|
||||||
|
@ -48,6 +48,8 @@ public:
|
|||||||
void freeMemory();
|
void freeMemory();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
PluginData(const PluginData &obj);
|
||||||
|
|
||||||
PluginData() {
|
PluginData() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
17
source/plugin/PluginInformation.cpp
Normal file
17
source/plugin/PluginInformation.cpp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#include "PluginInformation.h"
|
||||||
|
|
||||||
|
PluginInformation::PluginInformation(const PluginInformation& other) {
|
||||||
|
for (size_t i=0; i<other.hook_data_list.size(); i++){
|
||||||
|
hook_data_list.push_back(other.hook_data_list[i]);
|
||||||
|
}
|
||||||
|
for (size_t i=0; i<other.function_data_list.size(); i++){
|
||||||
|
function_data_list.push_back(other.function_data_list[i]);
|
||||||
|
}
|
||||||
|
for (size_t i=0; i<other.relocation_data_list.size(); i++){
|
||||||
|
relocation_data_list.push_back(other.relocation_data_list[i]);
|
||||||
|
}
|
||||||
|
section_info_list = other.section_info_list;
|
||||||
|
trampolinId = other.trampolinId;
|
||||||
|
allocatedTextMemoryAddress = other.allocatedTextMemoryAddress;
|
||||||
|
allocatedDataMemoryAddress = other.allocatedDataMemoryAddress;
|
||||||
|
}
|
@ -29,6 +29,8 @@
|
|||||||
|
|
||||||
class PluginInformation {
|
class PluginInformation {
|
||||||
public:
|
public:
|
||||||
|
PluginInformation(const PluginInformation& other);
|
||||||
|
|
||||||
PluginInformation() {
|
PluginInformation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
11
source/plugin/PluginMetaInformation.cpp
Normal file
11
source/plugin/PluginMetaInformation.cpp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include "PluginMetaInformation.h"
|
||||||
|
|
||||||
|
PluginMetaInformation::PluginMetaInformation(const PluginMetaInformation& other) {
|
||||||
|
this->name = other.name;
|
||||||
|
this->author = other.author;
|
||||||
|
this->version = other.version;
|
||||||
|
this->license = other.license;
|
||||||
|
this->buildtimestamp = other.buildtimestamp;
|
||||||
|
this->description = other.description;
|
||||||
|
this->size = other.size;
|
||||||
|
}
|
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
class PluginMetaInformation {
|
class PluginMetaInformation {
|
||||||
public:
|
public:
|
||||||
|
PluginMetaInformation(const PluginMetaInformation& other);
|
||||||
|
|
||||||
const std::string getName() const {
|
const std::string getName() const {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user