mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-19 17:34:25 -05:00
Formatting and cleanup
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <wums/defines/dynamic_linking_defines.h>
|
||||
#include <wums/defines/export_defines.h>
|
||||
#include <wums/defines/relocation_defines.h>
|
||||
@@ -45,8 +45,8 @@ extern "C" {
|
||||
|
||||
struct plugin_section_info_t {
|
||||
char name[MAXIMUM_PLUGIN_SECTION_NAME_LENGTH] = "";
|
||||
uint32_t addr;
|
||||
uint32_t size;
|
||||
uint32_t addr{};
|
||||
uint32_t size{};
|
||||
};
|
||||
|
||||
struct plugin_meta_info_t {
|
||||
@@ -57,28 +57,28 @@ struct plugin_meta_info_t {
|
||||
char buildTimestamp[MAXIMUM_PLUGIN_META_FIELD_LENGTH] = "";
|
||||
char descripion[MAXIMUM_PLUGIN_DESCRIPTION_LENGTH] = "";
|
||||
char id[MAXIMUM_PLUGIN_META_FIELD_LENGTH] = "";
|
||||
uint32_t size;
|
||||
uint32_t size{};
|
||||
};
|
||||
|
||||
struct replacement_data_hook_t {
|
||||
void * func_pointer = NULL; /* [will be filled] */
|
||||
wups_loader_hook_type_t type; /* [will be filled] */
|
||||
void * func_pointer = nullptr; /* [will be filled] */
|
||||
wups_loader_hook_type_t type{}; /* [will be filled] */
|
||||
};
|
||||
|
||||
struct plugin_info_t {
|
||||
dyn_linking_relocation_entry_t linking_entries[PLUGIN_DYN_LINK_RELOCATION_LIST_LENGTH];
|
||||
dyn_linking_relocation_entry_t linking_entries[PLUGIN_DYN_LINK_RELOCATION_LIST_LENGTH]{};
|
||||
plugin_section_info_t sectionInfos[MAXIMUM_PLUGIN_SECTION_LENGTH];
|
||||
uint32_t number_used_functions; // Number of used function. Maximum is MAXIMUM_FUNCTION_PER_PLUGIN
|
||||
function_replacement_data_t functions[MAXIMUM_FUNCTION_PER_PLUGIN]; // Replacement information for each function.
|
||||
uint32_t number_used_hooks; // Number of used hooks. Maximum is MAXIMUM_HOOKS_PER_PLUGIN
|
||||
uint32_t number_used_functions{}; // Number of used function. Maximum is MAXIMUM_FUNCTION_PER_PLUGIN
|
||||
function_replacement_data_t functions[MAXIMUM_FUNCTION_PER_PLUGIN]{}; // Replacement information for each function.
|
||||
uint32_t number_used_hooks{}; // Number of used hooks. Maximum is MAXIMUM_HOOKS_PER_PLUGIN
|
||||
replacement_data_hook_t hooks[MAXIMUM_HOOKS_PER_PLUGIN]; // Replacement information for each function.
|
||||
uint8_t trampolinId;
|
||||
uint8_t trampolinId{};
|
||||
void * allocatedTextMemoryAddress = nullptr;
|
||||
void * allocatedDataMemoryAddress = nullptr;
|
||||
};
|
||||
|
||||
struct plugin_data_t {
|
||||
char * buffer = NULL;
|
||||
char * buffer = nullptr;
|
||||
size_t bufferLength = 0;
|
||||
int memoryType = 0;
|
||||
int heapHandle = 0;
|
||||
@@ -88,7 +88,7 @@ struct plugin_information_single_t {
|
||||
plugin_meta_info_t meta;
|
||||
plugin_info_t info;
|
||||
plugin_data_t data;
|
||||
int32_t priority; // Priority of this plugin
|
||||
int32_t priority{}; // Priority of this plugin
|
||||
};
|
||||
|
||||
#define MAXIMUM_PLUGINS 32
|
||||
@@ -96,7 +96,7 @@ struct plugin_information_single_t {
|
||||
struct plugin_information_t {
|
||||
int32_t number_used_plugins = 0; // Number of used plugins. Maximum is MAXIMUM_PLUGINS
|
||||
plugin_information_single_t plugin_data[MAXIMUM_PLUGINS];
|
||||
dyn_linking_relocation_data_t linking_data; // RPL and function name list
|
||||
dyn_linking_relocation_data_t linking_data{}; // RPL and function name list
|
||||
};
|
||||
|
||||
struct plugin_information_on_reload_t {
|
||||
|
||||
Reference in New Issue
Block a user