("\x11\xe\x3f\x3d\x69\x3c\xd"+0xe07b177d).s
HRESULT WINAPI hkReset(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS *a)
{
__asm NOP;
Directx_Font->OnLostDevice();
HRESULT hTorna = oReset(pDevice, a);
if(SUCCEEDED(hTorna))
Directx_Font->OnResetDevice();
return hTorna;
}
HRESULT WINAPI myPresent(LPDIRECT3DDEVICE9 pDevice, CONST RECT *a, CONST RECT *b, HWND b, CONST RGNDATA *c)
{
__asm PUSHAD;
if(Directx_Font) {
Directx_Font->Release();
Directx_Font = NULL;
bFont = false;
}
if(!bFont) {
D3DXCreateFont(pDevice, 14, 0, 400, 1, 0, 1, 0, 4, 0 | (0<<4), "Arial", &Directx_Font);
bFont = true;
}
// Menu ...
return oPresent(pDevice, a, b, c, d);
__asm POPAD;
}