Quote:
Originally Posted by Spirit_12
Have you tried to get the signature?
|
Yes, I have it. But I looked with IDA and it seems that g_oGameRules is retrieved from CWorld:
recache directly on Linux, whereas on Windows it's retrieved from InstallGameRules. That means that the InstallGameRules function never gets called on Linux.
Edit: For linux I'm using a symbol. Guess what I can do is to get memory address of that function and add a displacement to point to the g_pGameRules pointer value. I'm not home today, but I'll try tomorrow in the evening/night and see how it works. On Windows btw I have seen that g_pGameRules in the same runction returns InstallGameRules value, whereas, as I said, on Linux it foes not. But I am pretty sure that before Eteampipe with old tfc it did, the function is still there, but guess Valve changed some code for Linux and probably forgot to remove that function.
Actually, the print didn't even work, as the function is never calIed, so printed the value in plugin_init.