Formatting, added bash script for installing/updating the dependencies (based on the travis script)

This commit is contained in:
Maschell
2018-03-11 17:12:46 +01:00
parent 0e60a9bb48
commit 6ca382bf6e
14 changed files with 483 additions and 465 deletions

View File

@@ -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;
}

View File

@@ -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;
}