Just need to add __fastcall and working (catch int nSurface, int nX from register)
Code:
void __fastcall MyPrintFps(int nSurface, int nX, int nY, int nFont, int nRed, int nGreen, int nBlue, char* lpText, int nAlign) //10.76
---------------------------------------------------------------------------------------------------------------------
still another problem, print is working but I get error with calling convention
Code:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
PrintText function...
Code:
typedef void __fastcall _PrintText(int nSurface, int nX, int nY, int nFont, int nRed, int nGreen, int nBlue, char* lpText, int nAlign);
static _PrintText *PrintText = (_PrintText*)original;
PrintText(nSurface, nX, nY, nFont, nRed, nGreen, nBlue, lpText, nAlign);