[Friends] Steam avatars

This commit is contained in:
momo5502
2017-06-05 00:00:46 +02:00
parent 171cdcf0fd
commit 6f7ebb43b1
6 changed files with 178 additions and 0 deletions

View File

@ -870,6 +870,31 @@ namespace Game
return atoi(StringTable_Lookup(rankTable, 0, maxrank, 7));
}
__declspec(naked) void Image_Setup(GfxImage* /*image*/, unsigned int /*width*/, unsigned int /*height*/, unsigned int /*depth*/, unsigned int /*flags*/, int /*format*/)
{
__asm
{
pushad
xor edi, edi
mov eax, [esp + 24h] // image
mov di, word ptr [esp + 28h] // width
push [esp + 38h] // format
push [esp + 38h] // flags
push 0
push [esp + 3Ch] // depth
push [esp + 3Ch] // height
mov ecx, 54AF50h
call ecx
add esp, 14h
popad
retn
}
}
void SortWorldSurfaces(GfxWorld* world)
{
DWORD* specular1 = reinterpret_cast<DWORD*>(0x69F105C);

View File

@ -845,6 +845,8 @@ namespace Game
int CL_GetMaxXP();
void Image_Setup(GfxImage* image, unsigned int width, unsigned int height, unsigned int depth, unsigned int flags, int format);
void SortWorldSurfaces(GfxWorld* world);
void R_AddDebugLine(float* color, float* v1, float* v2);
void R_AddDebugString(float *color, float *pos, float scale, const char *str);