Hi.
I am referring a bit to my last thread about hooking.
I am hooking EndScene now. So long, so good.
But my code still looks like:
Code:
... EndScene(...)
{
if(some_bool_which_indicates_something_should_be_done)
{
some_bool_which_indicates_something_should_be_done = false;
//do some action
}
return EndScene(...);
}
Like Cypher said in my last thread about this...this isnt threadsafe.
But how are you "telling your hook" that an action should be done and which action?
I highly doubt anyone hooks EndScene, executes something, removes the hook every time.