parent
100166dafa
commit
0e6936a7ee
@ -440,6 +440,7 @@ void *Callback(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
ret = CallVFunction<void *>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
ret = CallVFunction<void *>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
break;
|
break;
|
||||||
case MRES_ChangedOverride:
|
case MRES_ChangedOverride:
|
||||||
if(dg->returnType != ReturnType_Void)
|
if(dg->returnType != ReturnType_Void)
|
||||||
@ -467,6 +468,7 @@ void *Callback(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
CallVFunction<void *>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
CallVFunction<void *>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
break;
|
break;
|
||||||
case MRES_Override:
|
case MRES_Override:
|
||||||
if(dg->returnType != ReturnType_Void)
|
if(dg->returnType != ReturnType_Void)
|
||||||
@ -520,6 +522,7 @@ void *Callback(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->DoRecall();
|
g_SHPtr->DoRecall();
|
||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -621,6 +624,7 @@ float Callback_float(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
*(float *)ret = CallVFunction<float>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
*(float *)ret = CallVFunction<float>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
break;
|
break;
|
||||||
case MRES_ChangedOverride:
|
case MRES_ChangedOverride:
|
||||||
if(dg->returnType != ReturnType_Void)
|
if(dg->returnType != ReturnType_Void)
|
||||||
@ -641,6 +645,7 @@ float Callback_float(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
CallVFunction<float>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
CallVFunction<float>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
break;
|
break;
|
||||||
case MRES_Override:
|
case MRES_Override:
|
||||||
if(dg->returnType != ReturnType_Void)
|
if(dg->returnType != ReturnType_Void)
|
||||||
@ -778,6 +783,7 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
*vec_result = CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
*vec_result = CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
break;
|
break;
|
||||||
case MRES_ChangedOverride:
|
case MRES_ChangedOverride:
|
||||||
if(dg->returnType != ReturnType_Void)
|
if(dg->returnType != ReturnType_Void)
|
||||||
@ -798,6 +804,7 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
break;
|
break;
|
||||||
case MRES_Override:
|
case MRES_Override:
|
||||||
if(dg->returnType != ReturnType_Void)
|
if(dg->returnType != ReturnType_Void)
|
||||||
@ -926,6 +933,7 @@ string_t *Callback_stringt(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
*string_result = CallVFunction<string_t>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
*string_result = CallVFunction<string_t>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
break;
|
break;
|
||||||
case MRES_ChangedOverride:
|
case MRES_ChangedOverride:
|
||||||
if(dg->returnType != ReturnType_Void)
|
if(dg->returnType != ReturnType_Void)
|
||||||
@ -946,6 +954,7 @@ string_t *Callback_stringt(DHooksCallback *dg, void **argStack)
|
|||||||
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
g_SHPtr->SetRes(MRES_SUPERCEDE);
|
||||||
mres = MRES_SUPERCEDE;
|
mres = MRES_SUPERCEDE;
|
||||||
CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
|
||||||
|
g_SHPtr->EndContext(NULL);
|
||||||
break;
|
break;
|
||||||
case MRES_Override:
|
case MRES_Override:
|
||||||
if(dg->returnType != ReturnType_Void)
|
if(dg->returnType != ReturnType_Void)
|
||||||
|
Loading…
Reference in New Issue
Block a user