mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2026-09-27 11:26:42 -05:00
Formatting, added bash script for installing/updating the dependencies (based on the travis script)
This commit is contained in:
@@ -21,33 +21,33 @@
|
||||
#include <wups.h>
|
||||
#include <string>
|
||||
|
||||
class FunctionData{
|
||||
class FunctionData {
|
||||
|
||||
public:
|
||||
FunctionData(const char * name, wups_loader_library_type_t library, void * target, void * call_addr){
|
||||
FunctionData(const char * name, wups_loader_library_type_t library, void * target, void * call_addr) {
|
||||
this->name = name;
|
||||
this->library = library;
|
||||
this->replaceAddr = target;
|
||||
this->replaceCall = call_addr;
|
||||
}
|
||||
|
||||
~FunctionData(){
|
||||
~FunctionData() {
|
||||
|
||||
}
|
||||
|
||||
std::string getName(){
|
||||
std::string getName() {
|
||||
return this->name;
|
||||
}
|
||||
|
||||
wups_loader_library_type_t getLibrary(){
|
||||
wups_loader_library_type_t getLibrary() {
|
||||
return this->library;
|
||||
}
|
||||
|
||||
void * getReplaceAddress(){
|
||||
void * getReplaceAddress() {
|
||||
return replaceAddr;
|
||||
}
|
||||
|
||||
void * getReplaceCall(){
|
||||
void * getReplaceCall() {
|
||||
return replaceCall;
|
||||
}
|
||||
|
||||
|
||||
@@ -397,7 +397,7 @@ void PluginLoader::copyPluginDataIntoGlobalStruct(std::vector<PluginData *> plug
|
||||
replacement_data_function_t * function_data = &plugin_data->functions[j];
|
||||
FunctionData * cur_function = function_data_list[j];
|
||||
|
||||
if(strlen(cur_function->getName().c_str()) > MAXIMUM_FUNCTION_NAME_LENGTH-1){
|
||||
if(strlen(cur_function->getName().c_str()) > MAXIMUM_FUNCTION_NAME_LENGTH-1) {
|
||||
DEBUG_FUNCTION_LINE("Couldn not add function \"%s\" for plugin \"%s\" function name is too long.\n",cur_function->getName().c_str(),plugin_data->plugin_name);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user