mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-20 01:51:58 -05:00
Organize imports and format code
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
class PluginContainer {
|
||||
public:
|
||||
PluginContainer(const PluginContainer& other) {
|
||||
PluginContainer(const PluginContainer &other) {
|
||||
this->pluginData = other.pluginData;
|
||||
this->pluginInformation = other.pluginInformation;
|
||||
this->metaInformation = other.metaInformation;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "PluginData.h"
|
||||
|
||||
bool PluginDataPersistence::save(plugin_data_t *pluginDataStruct, PluginData &plugin) {
|
||||
if(pluginDataStruct == NULL){
|
||||
if (pluginDataStruct == NULL) {
|
||||
return false;
|
||||
}
|
||||
pluginDataStruct->buffer = (char *) plugin.buffer;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#include "PluginInformation.h"
|
||||
|
||||
PluginInformation::PluginInformation(const PluginInformation& other) {
|
||||
for (size_t i=0; i<other.hook_data_list.size(); i++){
|
||||
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++){
|
||||
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++){
|
||||
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;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
class PluginInformation {
|
||||
public:
|
||||
PluginInformation(const PluginInformation& other);
|
||||
PluginInformation(const PluginInformation &other);
|
||||
|
||||
PluginInformation() {
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "PluginMetaInformation.h"
|
||||
|
||||
PluginMetaInformation::PluginMetaInformation(const PluginMetaInformation& other) {
|
||||
PluginMetaInformation::PluginMetaInformation(const PluginMetaInformation &other) {
|
||||
this->name = other.name;
|
||||
this->author = other.author;
|
||||
this->version = other.version;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
class PluginMetaInformation {
|
||||
public:
|
||||
PluginMetaInformation(const PluginMetaInformation& other);
|
||||
PluginMetaInformation(const PluginMetaInformation &other);
|
||||
|
||||
const std::string getName() const {
|
||||
return name;
|
||||
|
||||
@@ -36,6 +36,7 @@ std::optional<PluginMetaInformation> PluginMetaInformationFactory::loadPlugin(co
|
||||
}
|
||||
return loadPlugin(readerOpt.value());
|
||||
}
|
||||
|
||||
std::optional<PluginMetaInformation> PluginMetaInformationFactory::loadPlugin(const std::string filePath) {
|
||||
auto reader = new elfio;
|
||||
if (reader == NULL || !reader->load(filePath)) {
|
||||
|
||||
Reference in New Issue
Block a user