Skip to content

Commit 2667929

Browse files
authored
Merge pull request #1638 from Gh0stBlade/poolmmg2_structs
[POOLMMG2]: Update struct
2 parents 3fed4ce + e3a0555 commit 2667929

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

KAIN2/Game/G2/POOLMMG2.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "Game/G2/POOLMMG2.H"
33
#include "Game/MEMPACK.H"
44

5-
void G2PoolMem_InitPool(void *voidPool, int blockCount, int blockSize)//Matching - 100%
5+
void G2PoolMem_InitPool(void *voidPool, int blockCount, int blockSize) // Matching - 100%
66
{
77
((struct _G2PoolMemPool_Type*)voidPool)->blockPool = (struct _G2PoolMem_Type*)MEMPACK_Malloc(blockCount * blockSize, 0x19);
88
((struct _G2PoolMemPool_Type*)voidPool)->stack = (unsigned short*)MEMPACK_Malloc(blockCount * 4, 0x19);
@@ -12,7 +12,7 @@ void G2PoolMem_InitPool(void *voidPool, int blockCount, int blockSize)//Matching
1212
G2PoolMem_ResetPool(voidPool);
1313
}
1414

15-
void G2PoolMem_ResetPool(void* voidPool)//Matching - 100%
15+
void G2PoolMem_ResetPool(void* voidPool) // Matching - 100%
1616
{
1717
struct _G2PoolMemPool_Type* pool;
1818
int blockIndex;
@@ -33,7 +33,7 @@ void G2PoolMem_ResetPool(void* voidPool)//Matching - 100%
3333
}
3434
}
3535

36-
void* G2PoolMem_Allocate(void* voidPool)//Matching - 100%
36+
void* G2PoolMem_Allocate(void* voidPool) // Matching - 100%
3737
{
3838
int blockIndex;
3939

KAIN2/Game/G2/POOLMMG2.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef POOLMMG2_H
22
#define POOLMMG2_H
33

4-
struct _G2PoolMemPool_Type // hashcode: 0x987744BB (dec: -1737014085)
4+
struct _G2PoolMemPool_Type
55
{
66
unsigned short blockSize; // size=0, offset=0
77
unsigned short stackTop; // size=0, offset=2

KAIN2/Game/G2/QUATG2.C

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "Game/MATH3D.H"
55
#include "Game/PSX/COLLIDES.H"
66

7-
87
#define EulSafe "\000\001\002\000"
98
#define EulNext "\001\002\000\001"
109
#define EulFrmR 1
@@ -27,7 +26,7 @@ void G2EulerAngles_FromMatrix(struct _G2EulerAngles_Type* euler, struct _G2Matri
2726
long n;
2827
long s;
2928
long f;
30-
long g; // Not exist in sysdump
29+
long g; // not from SYMDUMP
3130

3231
unsigned int o;
3332
o = order;
@@ -94,4 +93,4 @@ void G2EulerAngles_FromMatrix(struct _G2EulerAngles_Type* euler, struct _G2Matri
9493
euler->z = t;
9594
}
9695
euler->order = (short)order;
97-
}
96+
}

KAIN2/Game/G2/TIMERG2.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ short G2Timer_GetFrameTime() // Matching - 100%
2020
}
2121

2222
return atime;
23-
}
23+
}

0 commit comments

Comments
 (0)