clean up extra decorators
This commit is contained in:
1 parent
531e638179
commit
3183e73860
95 files changed
+4629
-4631
No files matched your search
+12
-12
@@ -1,7 +1,7 @@
|
||||
#include "pinball.h"
|
||||
|
||||
//----- (01012E51) --------------------------------------------------------
|
||||
int __stdcall objlist_add_object(_DWORD *a1, int a2)
|
||||
int objlist_add_object(DWORD *a1, int a2)
|
||||
{
|
||||
int v2; // ecx
|
||||
|
||||
@@ -13,17 +13,17 @@ return ++a1[1];
|
||||
}
|
||||
|
||||
//----- (01012E7A) --------------------------------------------------------
|
||||
signed int __stdcall objlist_delete_object(int a1, int a2)
|
||||
signed int objlist_delete_object(int a1, int a2)
|
||||
{
|
||||
int v2; // edx
|
||||
int v3; // ecx
|
||||
_DWORD *v4; // esi
|
||||
DWORD *v4; // esi
|
||||
|
||||
v2 = *(_DWORD *)(a1 + 4);
|
||||
v2 = *(DWORD *)(a1 + 4);
|
||||
v3 = v2 - 1;
|
||||
if ( v2 - 1 < 0 )
|
||||
return 0;
|
||||
v4 = (_DWORD *)(a1 + 4 * v3 + 8);
|
||||
v4 = (DWORD *)(a1 + 4 * v3 + 8);
|
||||
while ( *v4 != a2 )
|
||||
{
|
||||
--v3;
|
||||
@@ -31,17 +31,17 @@ while ( *v4 != a2 )
|
||||
if ( v3 < 0 )
|
||||
return 0;
|
||||
}
|
||||
*(_DWORD *)(a1 + 4 * v3 + 8) = *(_DWORD *)(a1 + 4 * v2 + 4);
|
||||
--*(_DWORD *)(a1 + 4);
|
||||
*(DWORD *)(a1 + 4 * v3 + 8) = *(DWORD *)(a1 + 4 * v2 + 4);
|
||||
--*(DWORD *)(a1 + 4);
|
||||
return 1;
|
||||
}
|
||||
|
||||
//----- (01012EBE) --------------------------------------------------------
|
||||
_DWORD *__stdcall objlist_new(int a1)
|
||||
DWORD *objlist_new(int a1)
|
||||
{
|
||||
_DWORD *result; // eax
|
||||
DWORD *result; // eax
|
||||
|
||||
result = (_DWORD *)memoryallocate(4 * a1 + 12);
|
||||
result = (DWORD *)memoryallocate(4 * a1 + 12);
|
||||
if ( result )
|
||||
{
|
||||
result[1] = 0;
|
||||
@@ -51,7 +51,7 @@ return result;
|
||||
}
|
||||
|
||||
//----- (01012EE8) --------------------------------------------------------
|
||||
int *__stdcall objlist_grow(int *a1, int a2)
|
||||
int *objlist_grow(int *a1, int a2)
|
||||
{
|
||||
int *v2; // esi
|
||||
int v3; // eax
|
||||
@@ -75,7 +75,7 @@ return v2;
|
||||
}
|
||||
|
||||
//----- (01013C6F) --------------------------------------------------------
|
||||
void __stdcall objlist_destroy(int a1)
|
||||
void objlist_destroy(int a1)
|
||||
{
|
||||
if ( a1 )
|
||||
memoryfree(a1);
|
||||
|
||||
@@ -10,15 +10,15 @@ objlist_class *__thiscall objlist_class::objlist_class(objlist_class *this, int
|
||||
objlist_class *v3; // esi
|
||||
|
||||
v3 = this;
|
||||
*((_DWORD *)this + 1) = objlist_new(a2);
|
||||
*(_DWORD *)v3 = a3;
|
||||
*((DWORD *)this + 1) = objlist_new(a2);
|
||||
*(DWORD *)v3 = a3;
|
||||
return v3;
|
||||
}
|
||||
|
||||
//----- (010098F7) --------------------------------------------------------
|
||||
void __thiscall objlist_class::Grow(objlist_class *this)
|
||||
{
|
||||
*((_DWORD *)this + 1) = objlist_grow(*((int **)this + 1), *(_DWORD *)this);
|
||||
*((DWORD *)this + 1) = objlist_grow(*((int **)this + 1), *(DWORD *)this);
|
||||
}
|
||||
|
||||
//----- (0100ACF3) --------------------------------------------------------
|
||||
@@ -27,7 +27,7 @@ void __thiscall objlist_class::Add(objlist_class *this, void *a2)
|
||||
objlist_class *v2; // esi
|
||||
|
||||
v2 = this;
|
||||
if ( *(_DWORD *)(*((_DWORD *)this + 1) + 4) == **((_DWORD **)this + 1) )
|
||||
if ( *(DWORD *)(*((DWORD *)this + 1) + 4) == **((DWORD **)this + 1) )
|
||||
objlist_class::Grow(this);
|
||||
objlist_add_object(*((_DWORD **)v2 + 1), (int)a2);
|
||||
objlist_add_object(*((DWORD **)v2 + 1), (int)a2);
|
||||
}
|
||||
Reference in new issue
Block a user