StartPipingSession2 matching

This commit is contained in:
Dethrace Labs 2025-11-28 10:58:29 +13:00 committed by Dethrace Engineering Department
parent 65defe17fd
commit e8d8174ea9
2 changed files with 7 additions and 6 deletions

View File

@ -386,13 +386,14 @@ void StartPipingSession2(tPipe_chunk_type pThe_type, int pMunge_reentrancy) {
}
gReentrancy_count++;
}
gLocal_buffer_size = 0;
((tPipe_session*)gLocal_buffer)->chunk_type = pThe_type;
((tPipe_session*)gLocal_buffer)->number_of_chunks = 0;
#if defined(DETHRACE_REPLAY_DEBUG)
((tPipe_session*)gLocal_buffer)->pipe_magic1 = REPLAY_DEBUG_SESSION_MAGIC1;
#endif
gLocal_buffer_size = offsetof(tPipe_session, chunks);
gMr_chunky = &((tPipe_session*)gLocal_buffer)->chunks;
gLocal_buffer_size = (tU8*)&((tPipe_session*)gLocal_buffer)->chunks - gLocal_buffer;
gMr_chunky = gLocal_buffer + gLocal_buffer_size;
}
}

View File

@ -2415,13 +2415,13 @@ typedef struct tPipe_chunk { // size: 0x58
} chunk_data; // @0x4
} tPipe_chunk;
typedef struct tPipe_session {
tPipe_chunk_type chunk_type;
tU8 number_of_chunks;
typedef struct tPipe_session { // size: 0x60
tPipe_chunk_type chunk_type; // @0x0
tU8 number_of_chunks; // @0x4
#if defined(DETHRACE_REPLAY_DEBUG)
int pipe_magic1;
#endif
tPipe_chunk chunks;
tPipe_chunk chunks; // @0x8
} tPipe_session;
typedef struct tCollison_data {