[Functions] Fix debug line

This commit is contained in:
momo5502
2017-03-29 16:44:05 +02:00
parent 41fef13272
commit 185ea56f72
4 changed files with 35 additions and 5 deletions

View File

@ -503,6 +503,31 @@ namespace Game
}
}
__declspec(naked) XAssetEntry* DB_FindXAssetEntry(XAssetType /*type*/, const char* /*name*/)
{
__asm
{
push eax
pushad
mov edi, [esp + 2Ch] // name
push edi
mov edi, [esp + 2Ch] // type
mov eax, 5BB1B0h
call eax
add esp, 4h
mov[esp + 20h], eax
popad
pop eax
retn
}
}
__declspec(naked) void FS_AddLocalizedGameDirectory(const char* /*path*/, const char* /*dir*/)
{
__asm
@ -770,8 +795,8 @@ namespace Game
push eax
// debugglobals
mov edi, ds:66DAD78h
add edi, 268772
mov esi, ds:66DAD78h
add esi, 268772
mov edi, [esp + 2Ch] // color

View File

@ -746,6 +746,7 @@ namespace Game
XAssetType DB_GetXAssetNameType(const char* name);
bool DB_IsZoneLoaded(const char* zone);
XAssetHeader DB_FindXAssetDefaultHeaderInternal(XAssetType type);
XAssetEntry* DB_FindXAssetEntry(XAssetType type, const char* name);
void FS_AddLocalizedGameDirectory(const char *path, const char *dir);

View File

@ -3063,8 +3063,6 @@ namespace Game
float scale;
};
struct GfxStaticModelDrawInst
{
GfxPackedPlacement placement;
@ -3125,6 +3123,12 @@ namespace Game
float coeffs[4];
};
struct DpvsPlanes
{
DpvsPlane *planes;
int count;
};
struct GfxPortal
{
GfxPortalWritable writable;