[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

@ -571,7 +571,7 @@ namespace Components
float* _selfOrigin = reinterpret_cast<float*>(0x85B708); float* _selfOrigin = reinterpret_cast<float*>(0x85B708);
glm::vec2 selfOrigin(_selfOrigin[0], _selfOrigin[1]); glm::vec2 selfOrigin(_selfOrigin[0], _selfOrigin[1]);
selfOrigin -= (glm::normalize(forward) * 200.0f); // Move 200 units back selfOrigin -= (forward * 200.0f); // Move 200 units back
for (unsigned int i = 0; i < gameWorld->dpvs.smodelCount; ++i) for (unsigned int i = 0; i < gameWorld->dpvs.smodelCount; ++i)
{ {

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*/) __declspec(naked) void FS_AddLocalizedGameDirectory(const char* /*path*/, const char* /*dir*/)
{ {
__asm __asm
@ -770,8 +795,8 @@ namespace Game
push eax push eax
// debugglobals // debugglobals
mov edi, ds:66DAD78h mov esi, ds:66DAD78h
add edi, 268772 add esi, 268772
mov edi, [esp + 2Ch] // color mov edi, [esp + 2Ch] // color

View File

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

View File

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