|
|
|
@ -391,8 +391,8 @@ static bool find_reactions(color_ostream &out)
|
|
|
|
|
|
|
|
|
|
for (size_t i = 0; i < rlist.size(); i++)
|
|
|
|
|
{
|
|
|
|
|
if (!is_lua_hook(rlist[i]->code))
|
|
|
|
|
continue;
|
|
|
|
|
//if (!is_lua_hook(rlist[i]->code))
|
|
|
|
|
// continue;
|
|
|
|
|
reactions[rlist[i]->code].react = rlist[i];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -410,7 +410,7 @@ static bool find_reactions(color_ostream &out)
|
|
|
|
|
parse_product(out, out_prod.back(), it->second.react, itprod);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (size_t i = 0; i < prod.size(); i++)
|
|
|
|
|
for (size_t i = 0; i < out_prod.size(); i++)
|
|
|
|
|
{
|
|
|
|
|
if (out_prod[i].isValid())
|
|
|
|
|
products[out_prod[i].product] = &out_prod[i];
|
|
|
|
@ -433,7 +433,7 @@ static void world_specific_hooks(color_ostream &out,bool enable)
|
|
|
|
|
{
|
|
|
|
|
if(enable && find_reactions(out))
|
|
|
|
|
{
|
|
|
|
|
out.print("Detected reaction hooks - enabling plugin.\n");
|
|
|
|
|
//out.print("Detected reaction hooks - enabling plugin.\n");
|
|
|
|
|
INTERPOSE_HOOK(product_hook, produce).apply(true);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|