I need some tip to undrestand what is the best way to execute external code from DLL or command line.
I like to add the force feedback support to different games that not support it.
I can write a DLL or a commnad line exe that execute the FFB. The problem is how I call these function from the game.
For the moment I have disassebled one game with IDA and found the point to put the call.
I don't have any experience in assembly. So I'am not sure if I'am in the right way.
There are some tool like: wininject so I was think to use it to add the dll dependency to my exe game.
After I need to do the call of my function inside the DLL in assembly (ex. exectute_ffb(par1) ), but I don't known the code to do the call.
Here the screenshot about the call.
int __cdecl sub_43AC70(char *a1, int a2)
{
call my_function(a1) from mylibrary.dll
int i; // [esp+0h] [ebp-4h]
for ( i = sub_43BC50(); i; i = *(_DWORD *)i )
{
if ( *(_DWORD *)(i + 88) == a2 && (!a1 || !stricmp((const char *)(i + 4), a1)) )
return i;
}
return 0;
Can you help me please ?