Remove functions now in util and fix more object related issues.

This commit is contained in:
Dr!fter
2016-08-30 16:40:24 -04:00
parent c3bc30ece3
commit 1fe19fc823
5 changed files with 53 additions and 82 deletions
+1 -33
View File
@@ -275,39 +275,7 @@ public:
this->dg = NULL;
this->isChanged = NULL;
}
~HookParamsStruct()
{
if(this->orgParams != NULL)
{
free(this->orgParams);
}
if(this->isChanged != NULL)
{
free(this->isChanged);
}
if(this->newParams != NULL)
{
for(int i = dg->params.size() - 1; i >= 0 ; i--)
{
if(this->newParams[i] == NULL)
continue;
if(dg->params.at(i).type == HookParamType_VectorPtr)
{
delete (SDKVector *)this->newParams[i];
}
else if(dg->params.at(i).type == HookParamType_CharPtr)
{
delete (char *)this->newParams[i];
}
else if(dg->params.at(i).type == HookParamType_Float)
{
delete (float *)this->newParams[i];
}
}
free(this->newParams);
}
}
~HookParamsStruct();
public:
void **orgParams;
void **newParams;